btrfs-progs: check: add option to skip mount checks
authorDavid Sterba <dsterba@suse.cz>
Thu, 31 Aug 2017 16:34:37 +0000 (18:34 +0200)
committerDavid Sterba <dsterba@suse.com>
Fri, 8 Sep 2017 14:15:05 +0000 (16:15 +0200)
commit162fdf95383bd6685cce17f9c52cc858fef2c09c
tree8c767bcce1ce252a6740438a3c3bb0c3dd4f9768
parent8609c8bad68528f668d9ce564b868aa4828107a0
btrfs-progs: check: add option to skip mount checks

Sometimes it's needed to do a check on a mounted filesystem. This should
work fine on a quiescent filesystem or a read-only mount. Changes on the
block device done by kernel might confuse the userspace checker and it
might crash when it reads some stale data.

Repair without mount checks is not supported right now.

Signed-off-by: David Sterba <dsterba@suse.cz>
Documentation/btrfs-check.asciidoc
cmds-check.c