hyperdrive icon indicating copy to clipboard operation
hyperdrive copied to clipboard

Missing NTFS/ReFS sparse support

Open da2x opened this issue 5 years ago • 4 comments

NTFS requires files to be created with the FILE_ATTRIBUTE_SPARSE_FILE attribute to treat them as sparse. This is different from other modern OSes where you don’t need to do anything special.

I tested with fsutil.exe sparse queryflag hyperdrive_file_name and various calls to check file sizes, and found that Hyperdrives aren’t marked as sparse files on NTFS.

Because of this, Hyperdrives downloaded with Dat or Beaker take up the full size of the archive on disk even though it contains huge sections of zero-bytes.

da2x avatar Feb 22 '20 02:02 da2x

Excellent find! I’ll try to fix this in the random-access-file module

mafintosh avatar Feb 22 '20 08:02 mafintosh

Sorry about reporting against the wrong repo. Should I close this and reopen an issue there?

da2x avatar May 15 '20 06:05 da2x

If you don’t mind yes. We can keep this one open to track it here also still

mafintosh avatar May 15 '20 06:05 mafintosh

https://github.com/random-access-storage/random-access-file/issues/23

da2x avatar May 16 '20 15:05 da2x