#24 wiper v2.8 patch for ntfs/hfsplus offline trim

open
nobody
None
5
2010-08-27
2010-08-27
Heiko Wegeler
No

hello,

here is a wiper v2.8 patch for ntfs/hfsplus offline trim. Works also for a hfsplus within a wrapper (mkfs.hfsplus -w).
ntfs: ntfscat and ntfsinfo from package ntfs-tools is required.
hfsplus: fsstat and icat from package sleuthkit (v3.1.1 and above) is required.

The gawk part is mostly the same for both filesystems. Within each byte, the most significant bit holds information about the allocation block with the lowest number for hfsplus. Ntfs has reverse order. For hfsplus only ranges > (2*blocksize) will be trimmed, because every file is followed from (2*blocksize) empty sectors and this makes the trimming dogslow on big filesystems.

Please include the patch in the next wiper version.

Thanks

Discussion

  • Heiko Wegeler
    Heiko Wegeler
    2010-08-27

     
    Attachments