summaryrefslogtreecommitdiff
path: root/cmds-fi-usage.c
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2015-11-03 01:09:50 +0100
committerDavid Sterba <dsterba@suse.com>2015-11-03 01:09:50 +0100
commitc5cb2432bfea5a657495d511bcbfd38dcb8cba41 (patch)
treecb5237707043a3fcf636f9e62b08d29a4997b540 /cmds-fi-usage.c
parent1de2da5dddc373cbadd6ff45d2fc8595492a78c6 (diff)
btrfs-progs: fi usage: print header and footer separation line
Print the full row width and change to '-' as we're not using '=' anywhere. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'cmds-fi-usage.c')
-rw-r--r--cmds-fi-usage.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/cmds-fi-usage.c b/cmds-fi-usage.c
index 3b463880..4b558a88 100644
--- a/cmds-fi-usage.c
+++ b/cmds-fi-usage.c
@@ -725,14 +725,22 @@ static void _cmd_filesystem_usage_tabular(unsigned unit_mode,
}
+ for (i = 0; i < spaceinfos_col; i++) {
+ table_printf(matrix, i, vhdr_skip - 1, "*-");
+ table_printf(matrix, i, vhdr_skip + device_info_count, "*-");
+ }
+
for (i = 0, col = spaceinfos_col; i < sargs->total_spaces; i++) {
if (sargs->spaces[i].flags & BTRFS_SPACE_INFO_GLOBAL_RSV)
continue;
- table_printf(matrix, col++, vhdr_skip + device_info_count, "*=");
+ table_printf(matrix, col, vhdr_skip - 1, "*-");
+ table_printf(matrix, col, vhdr_skip + device_info_count, "*-");
+ col++;
}
/* One for Unallocated */
- table_printf(matrix, col, vhdr_skip + device_info_count, "*=");
+ table_printf(matrix, col, vhdr_skip - 1, "*-");
+ table_printf(matrix, col, vhdr_skip + device_info_count, "*-");
/* footer */
table_printf(matrix, 1, vhdr_skip + device_info_count + 1, "<Total");