btrfsck is used to check and optionally repair of a Btrfs filesystem.
Now, it can only be run on an unmounted FS. Considering it is not
well-tested in real-life situations yet. if you have a broken Btrfs
filesystem, btrfsck may not repair but cause aditional damages.
<device> is the device file where the filesystem is stored.
specify which superblock copy that you want to use.
try to repair the filesystem.
create a new CRC tree.
create a new extent tree.
btrfsck will return 0 exit code if no error happened. Other exit
code means some problems happened.
This is free software: you are free to change and redistribute
it. There is NO WARRANTY, to the extent permitted by law.
This page is part of the btrfs-progs (btrfs filesystem tools)
project. Information about the project can be found at
If you have a bug report for this manual page, see
This page was obtained from the project's upstream Git repository
on 2015-03-02. If you discover any rendering problems in this HTML
version of the page, or you believe there is a better or more up-to-
date source for the page, or you have corrections or improvements to
the information in this COLOPHON (which is not part of the original
manual page), send a mail to firstname.lastname@example.org