From c71cab34bcfeab70dc0b751d165814bdcaf91d80 Mon Sep 17 00:00:00 2001 From: Matthew Dillon Date: Thu, 16 Sep 2010 08:55:54 -0700 Subject: [PATCH] HAMMER Utility - Adjust documentation * Add some missing bits re: checkmap Reported-by: Ilya Dryomov --- sbin/hammer/hammer.8 | 4 ++++ sbin/hammer/hammer.c | 5 +++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/sbin/hammer/hammer.8 b/sbin/hammer/hammer.8 index e579eeb926..96856678a6 100644 --- a/sbin/hammer/hammer.8 +++ b/sbin/hammer/hammer.8 @@ -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. diff --git a/sbin/hammer/hammer.c b/sbin/hammer/hammer.c index 13b548df0e..80eedb01c2 100644 --- a/sbin/hammer/hammer.c +++ b/sbin/hammer/hammer.c @@ -535,11 +535,9 @@ usage(int exit_code) " [-f blkdevs] [-i delay] [-t seconds] [-S splitup]\n" " command [argument ...]\n" "hammer synctid [quick]\n" - "hammer -f blkdevs blockmap\n" "hammer bstats [interval]\n" "hammer iostats [interval]\n" "hammer history[@offset[,len]] ...\n" - "hammer -f blkdevs [-qqq] show [lo:objid]\n" "hammer namekey1 \n" "hammer namekey2 \n" "hammer namekey32 \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 \n" ); -- 2.41.0