3 unstable releases

0.2.1 Dec 12, 2021
0.2.0 Nov 7, 2021
0.1.0 Nov 7, 2021

#10 in #trim

Download history 5/week @ 2024-03-12 3/week @ 2024-03-19 34/week @ 2024-03-26 78/week @ 2024-04-02 2/week @ 2024-04-09 24/week @ 2024-04-16 2/week @ 2024-04-23 16/week @ 2024-04-30 68/week @ 2024-05-07 34/week @ 2024-05-14 2/week @ 2024-05-21 39/week @ 2024-05-28 19/week @ 2024-06-04 2/week @ 2024-06-18 42/week @ 2024-06-25

65 downloads per month

MIT/Apache

8KB
118 lines

count-zeroes

Count zeroes on a disk or a file.

Installation & Usage

cargo install count-zeroes
count-zeroes /dev/sdXN

Purpose

This is useful if you want to check if an SSD has been trimmed or a disk has been wiped-clean. I found no obvious way to do that and it's useful when you try to recover a filesystem to avoid chasing ghosts. In my case, an attempt to recover a BTRFS partition showed me there was a superblock somewhere but it was just some random unrelated data.

This program can be used as a library, it has no dependency. It is optimized for speed.

No runtime deps