HAMMER Utility - Adjust documentation
authorMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Sep 2010 15:55:54 +0000 (08:55 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Thu, 16 Sep 2010 15:55:54 +0000 (08:55 -0700)
* Add some missing bits re: checkmap

Reported-by: Ilya Dryomov <idryomov@gmail.com>
sbin/hammer/hammer.8
sbin/hammer/hammer.c

index e579eeb..9685667 100644 (file)
@@ -305,6 +305,10 @@ Check the blockmap allocation count.
 will scan the B-Tree, collect allocation information, and
 construct a blockmap in-memory.  It will then check that blockmap
 against the on-disk blockmap.
+.Pp
+This command needs the
+.Fl f
+flag.
 .\" ==== show ====
 .It Cm show Op Ar lo Ns Cm \&: Ns Ar objid
 Dump the B-Tree.
index 13b548d..80eedb0 100644 (file)
@@ -535,11 +535,9 @@ usage(int exit_code)
                "       [-f blkdevs] [-i delay] [-t seconds] [-S splitup]\n"
                "       command [argument ...]\n"
                "hammer synctid <filesystem> [quick]\n"
-               "hammer -f blkdevs blockmap\n"
                "hammer bstats [interval]\n"
                "hammer iostats [interval]\n"
                "hammer history[@offset[,len]] <file> ...\n"
-               "hammer -f blkdevs [-qqq] show [lo:objid]\n"
                "hammer namekey1 <path>\n"
                "hammer namekey2 <path>\n"
                "hammer namekey32 <path>\n"
@@ -590,6 +588,9 @@ usage(int exit_code)
        fprintf(stderr, "\nHAMMER utility version 4+ commands:\n");
 
        fprintf(stderr,
+               "hammer -f blkdevs blockmap\n"
+               "hammer -f blkdevs checkmap\n"
+               "hammer -f blkdevs [-qqq] show [lo:objid]\n"
                "hammer -f blkdevs show-undo\n"
                "hammer -f blkdevs recover <target_dir>\n"
        );