You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
On Linux and some other POSIX systems, lseek supports two additional values for whence relating to sparse files, SEEK_HOLE and SEEK_DATA. I believe these should be supported by rustix.
For reference, some filesystems have files with large amounts of zero data that can be optionally marked "sparse", and these sections won't be allocated on disk. This feature can be exposed to userspace applications to improve the performance of some operations, like cp.
Although this is technically not a part of the POSIX standard, it has been proposed for issue 8.
Yes, rustix should add this. It will require Rustix to switch to its own SeekFrom type, rather than just using std's, but I think that makes sense to do.
On Linux and some other POSIX systems,
lseek
supports two additional values forwhence
relating to sparse files,SEEK_HOLE
andSEEK_DATA
. I believe these should be supported byrustix
.For reference, some filesystems have files with large amounts of zero data that can be optionally marked "sparse", and these sections won't be allocated on disk. This feature can be exposed to userspace applications to improve the performance of some operations, like
cp
.Although this is technically not a part of the POSIX standard, it has been proposed for issue 8.
As an example of prior art,
nix
already exposes this ability.The text was updated successfully, but these errors were encountered: