martijnvanbrummelen / nwipe

nwipe secure disk eraser
GNU General Public License v2.0
799 stars 86 forks source link

Populates device block size before hidden sector #546

Closed PartialVolume closed 9 months ago

PartialVolume commented 9 months ago

Now populates the block size (physical) before the hidden sector determination function runs.

The naming of block/sector can be very confusing in nwipe. So I have created a device_phy_sector_size in the drive context, so we have

->device_sector_size // logical sector size ->device_phys_sector_size // physical sector size ->device_block_size // Usually the same as logical size but could be increased by nwipe to encompass multiple logical sectors, i.e a block of sectors