summaryrefslogtreecommitdiff
path: root/btrfs.c
diff options
context:
space:
mode:
authorJan Schmidt <list.btrfs@jan-o-sch.net>2011-07-18 14:37:21 +0200
committerChris Mason <chris.mason@oracle.com>2011-10-25 09:18:59 -0400
commit19011f9ab6f9f9d05bde16761cd5613e1f815525 (patch)
treee4ce423ce23e0486ccae184039ff0567462f2bf9 /btrfs.c
parentd8e974fb4c81c35ee25cd2a45b8e1d50db7def9a (diff)
btrfs-progs: commands added
- scrub commands added - open_file_or_dir no longer static (needed by scrub.c) Signed-off-by: Jan Schmidt <list.btrfs@jan-o-sch.net> Signed-off-by: Hugo Mills <hugo@carfax.org.uk>
Diffstat (limited to 'btrfs.c')
-rw-r--r--btrfs.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/btrfs.c b/btrfs.c
index a8553646..a3f9a01d 100644
--- a/btrfs.c
+++ b/btrfs.c
@@ -127,6 +127,29 @@ static struct Command commands[] = {
"If <newlabel> is passed, set the filesystem label to <newlabel>.\n"
"The filesystem must be unmounted.\n"
},
+ { do_scrub_start, -1,
+ "scrub start", "[-Bdqr] <path>|<device>\n"
+ "Start a new scrub.",
+ "\n-B do not background\n"
+ "-d stats per device (-B only)\n"
+ "-q quiet\n"
+ "-r read only mode\n"
+ },
+ { do_scrub_cancel, 1,
+ "scrub cancel", "<path>|<device>\n"
+ "Cancel a running scrub.",
+ NULL
+ },
+ { do_scrub_resume, -1,
+ "scrub resume", "[-Bdqr] <path>|<device>\n"
+ "Resume previously canceled or interrupted scrub.",
+ NULL
+ },
+ { do_scrub_status, -1,
+ "scrub status", "[-d] <path>|<device>\n"
+ "Show status of running or finished scrub.",
+ NULL
+ },
{ do_scan, 999,
"device scan", "[<device>...]\n"
"Scan all device for or the passed device for a btrfs\n"