From d58869bda15ddc5e96c1c053196fcd3e56e340c6 Mon Sep 17 00:00:00 2001 From: Tomohiro Kusumi Date: Wed, 22 Apr 2015 00:15:21 +0900 Subject: [PATCH] sbin/hammer: Print key_end.lo instead of key_beg.lo on reblock - Print reblock.key_end.localization when reblock starts instead of reblock.key_beg.localization. - hammer reblock printing 0000 while reblock-inodes printing 0001 and reblock-data|dirs printing 0002 seems strange because reblock covers all localization types ranging from MIN(0000) to MAX(ffff) on btree iteration (which obviously includes existing two types for inode and misc). Printing end localization should make better sense here. --- sbin/hammer/cmd_reblock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sbin/hammer/cmd_reblock.c b/sbin/hammer/cmd_reblock.c index 9875a92002..1d7c6d26e5 100644 --- a/sbin/hammer/cmd_reblock.c +++ b/sbin/hammer/cmd_reblock.c @@ -96,7 +96,7 @@ hammer_cmd_reblock(char **av, int ac, int flags) reblock.free_level = 0; printf("reblock start %016jx:%04x\nfree level %d/%d\n", (uintmax_t)reblock.key_beg.obj_id, - reblock.key_beg.localization, + reblock.key_end.localization, reblock.free_level, HAMMER_BIGBLOCK_SIZE); -- 2.41.0