btrfs-progs: scrub, detect stale information in the status file
authorDavid Sterba <dsterba@suse.cz>
Thu, 2 Oct 2014 17:15:38 +0000 (19:15 +0200)
committerDavid Sterba <dsterba@suse.cz>
Fri, 10 Oct 2014 08:38:36 +0000 (10:38 +0200)
commitd5fd05a773e2b19455be7e1208e9003a607483c6
treec18b82618c80c9a13aca91c5bb862f92ddac3ae4
parentf32d749e66c2914d18f0acaad759e98fd829926a
btrfs-progs: scrub, detect stale information in the status file

If scrub is not cancelled nor finished, the recorded status will prevent
scrub to start again though it's not running. There's a force option to
run it anyway, but this is just a bandaid and the true status of scrub
should be detected automatically. The force option should not be
necessary anymore.

The test introduced in 9681f82853360aac1ff2 checks only the status file,
not kernel status of scrub.

Signed-off-by: David Sterba <dsterba@suse.cz>
cmds-scrub.c