[Bug 3798] New: Add native sparse file support (SEEK_HOLE, SEEK_DATA) to scp/sftp
bugzilla-daemon at mindrot.org
bugzilla-daemon at mindrot.org
Tue Mar 4 23:03:50 AEDT 2025
https://bugzilla.mindrot.org/show_bug.cgi?id=3798
Bug ID: 3798
Summary: Add native sparse file support (SEEK_HOLE, SEEK_DATA)
to scp/sftp
Product: Portable OpenSSH
Version: 9.9p2
Hardware: All
OS: All
Status: NEW
Severity: enhancement
Priority: P5
Component: sftp-server
Assignee: unassigned-bugs at mindrot.org
Reporter: Lionelcons1972 at gmail.com
Please add NATIVE sparse file support in scp/sftp via
SEEK_DATA/SEEK_HOLE on
POSIX(https://pubs.opengroup.org/onlinepubs/9799919799/functions/lseek.html)
or Windows FSCTL_QUERY_ALLOCATED_RANGES
(https://learn.microsoft.com/en-us/windows/win32/api/winioctl/ni-winioctl-fsctl_query_allocated_ranges).
We need that because people have tried to copy sparse file before, and
it either RUINED the files (by making them non-sparse, the holes were
filled-in with 0 byte data), or copies took forever because the holes
in sparse files are very large (e.g. multi TB size).
--
You are receiving this mail because:
You are watching the assignee of the bug.
More information about the openssh-bugs
mailing list