Skip to content

Latest commit

 

History

History
19 lines (12 loc) · 1.07 KB

README.md

File metadata and controls

19 lines (12 loc) · 1.07 KB

statable

If you have a broken filesystem, it can be hard to find out which files can still be accessed successfully. statable is meant to find which files are still intact by running stat on them. Given a broken filesystem mounted at /mydata, you can run:

statable /mydata 1>goodfiles.txt 2>badfiles.txt

...and each file for which stat fails to return for 10 seconds will be put in badfiles.txt.

To access the files in addition to stating them (performing a more thorough check at the expense of reduced speed), using 200 processes rather than the default 64, a timeout of 7.5 seconds rather than 10, and printing the inaccessible files to the terminal, you could use:

statable --access /mydata 7.5 200 1>/dev/null

Use statable --help for a more thorough help message.

We strongly recommend that you install GNU Parallel and run parallel --citation before using statable; if you don't, the checks will run serially, resulting in agonizing slowness for all but the smallest or most intact filesystems.