Btrfs-progs: add option to skip whether a scrub has started/resumed in userspace
authorWang Shilong <wangsl.fnst@cn.fujitsu.com>
Mon, 2 Dec 2013 06:42:25 +0000 (14:42 +0800)
committerChris Mason <clm@fb.com>
Fri, 31 Jan 2014 16:22:11 +0000 (08:22 -0800)
commitf8675eb30ff5757402bd9dbde51bebc61fdff67e
treeaadce9d45283842bca4466946f23b3875e75f446
parentb94a3003aebe235171383ced624da10b2a2fa94b
Btrfs-progs: add option to skip whether a scrub has started/resumed in userspace

I hit a problem that i can not start scrub when i am trying to track
superblock generation mismatch problems.

The fact is that we are trying to check whether we have started a scrub operation
in userspace, this will make us can't start scrub if that record file is damaged
itself. By adding a option to skip that check, everything will be fine.

Signed-off-by: Wang Shilong <wangsl.fnst@cn.fujitsu.com>
Signed-off-by: David Sterba <dsterba@suse.cz>
Signed-off-by: Chris Mason <clm@fb.com>
cmds-scrub.c
man/btrfs.8.in