6 btrfs-check - check or repair an unmounted btrfs filesystem
10 *btrfs check* [options] <device>
14 *btrfs check* is used to check or repair an unmounted btrfs filesystem.
16 NOTE: Since btrfs is under development, the *btrfs check* capabilities are
17 continuously enhanced. It's highly recommended to read the following btrfs
18 wiki before executing *btrfs check* with '--repair' option: +
19 https://btrfs.wiki.kernel.org/index.php/Btrfsck
21 *btrfsck* is an alias of *btrfs check* command and is now deprecated.
25 -s|--super <superblock>::
26 use <superblock>th superblock copy, valid values are 0 up to 2 if the
27 respective superblock offset is within the fileystem
29 try to repair the filesystem
31 create a new CRC tree and recalculate all checksums
33 create a new extent tree
35 verify checkums of data blocks
37 indicate progress at various checking phases
39 verify qgroup accounting and compare against filesystem accounting
40 --subvol-extents <subvolid>::
41 show extent state for a subvolume
42 --tree-root <bytenr>::
43 use the given bytenr for the tree root
47 *btrfs check* returns a zero exit status if it succeeds. Non zero is
48 returned in case of failure.
52 *btrfs* is part of btrfs-progs.
53 Please refer to the btrfs wiki http://btrfs.wiki.kernel.org for