3

is there any zerofree equivalent for btrfs ?

and please don't give me sfill or cat /dev/zero >/tmp/file, this is not the same thing at all, be cause Zerofree finds the unallocated, non-zeroed blocks, in other words it will only fill inodes that contain data no longer accessible be cause it was deleted but not wiped

therefore, what is the real difference ? sfill or cat solution will fill ENTIRE filesystem free space with zeros, and not only inodes that need it

what is the pain ? I have a 200G hdd in my virtual machine, and I don't want to fill the entire virtual hdd with zeroes, just be cause !

thank you !

  • 2
    You might have a look at fstrim, which seems to be supported by btrfs. – Thomas Feb 2 '17 at 11:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.