jthornber / blk-archive

Dedup and compress your device mapper devices. Works especially well with thin provisioning.
8 stars 3 forks source link

Return Result<false> on thick device #2

Closed tasleson closed 1 year ago

tasleson commented 1 year ago

The function is_thin_device was raising Result<Err> when the device wasn't a thinly provisioned device. This prevents blk-archive from working on devices that aren't thinly provisioned. Documentation indicates that this is a use case, so change to return Result<false> when device isn't thin so that we proceed to use thick_packer.