From: Theodore Ts'o Date: Sun, 29 Jul 2012 23:02:29 +0000 (-0400) Subject: e2fsck: print the number of blocks and inodes in the verbose statistics X-Git-Tag: v1.42.5~1 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=87e56a995c303d84d9c5ca5bff1bd35e66956e8a;p=tools%2Fe2fsprogs.git e2fsck: print the number of blocks and inodes in the verbose statistics In addition to the free blocks and free inodes, also print the number of blocks and inodes in the verbose statistics. Signed-off-by: "Theodore Ts'o" --- diff --git a/e2fsck/unix.c b/e2fsck/unix.c index 1d33041..6348777 100644 --- a/e2fsck/unix.c +++ b/e2fsck/unix.c @@ -154,10 +154,10 @@ static void show_stats(e2fsck_t ctx) log_out(ctx, "\n"); } - log_out(ctx, P_("\n%12u inode used (%2.2f%%)\n", - "\n%12u inodes used (%2.2f%%)\n", + log_out(ctx, P_("\n%12u inode used (%2.2f%%, out of %u)\n", + "\n%12u inodes used (%2.2f%%, out of %u)\n", inodes_used), inodes_used, - 100.0 * inodes_used / inodes); + 100.0 * inodes_used / inodes, inodes); log_out(ctx, P_("%12u non-contiguous file (%0d.%d%%)\n", "%12u non-contiguous files (%0d.%d%%)\n", ctx->fs_fragmented), @@ -185,9 +185,10 @@ static void show_stats(e2fsck_t ctx) log_out(ctx, "\n"); } - log_out(ctx, P_("%12llu block used (%2.2f%%)\n", - "%12llu blocks used (%2.2f%%)\n", - blocks_used), blocks_used, 100.0 * blocks_used / blocks); + log_out(ctx, P_("%12llu block used (%2.2f%%, out of %llu)\n", + "%12llu blocks used (%2.2f%%, out of %llu)\n", + blocks_used), + blocks_used, 100.0 * blocks_used / blocks, blocks); log_out(ctx, P_("%12u bad block\n", "%12u bad blocks\n", ctx->fs_badblocks_count), ctx->fs_badblocks_count); log_out(ctx, P_("%12u large file\n", "%12u large files\n",