]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
spaceman: Add table header for -d option spaceman
authorDhruvesh Rathore <adrscube@gmail.com>
Wed, 11 Feb 2015 00:14:24 +0000 (11:14 +1100)
committerDave Chinner <david@fromorbit.com>
Wed, 11 Feb 2015 00:14:24 +0000 (11:14 +1100)
commit5f37ec45da0c1cdfeafa74d3fd5de53ef8d1ea80
tree48fc6f65c06d6eed2975562588fbd6cfbc748328
parentb5346e0b1a44da9b45d5f01159d69fe8998a2b12
spaceman: Add table header for -d option

The xfs_spaceman utility did not have a a proper title to the content
displayed using -d (debug) option.

Old output:

$ sudo xfs_spaceman -c "freesp -d" /media/xfs
       0        4        1
       0        5        1
       0        6        1
       0        7        1
.....

This patch adds a suitable title header to the output, making it much
more readable to the user.

New output:

$ sudo xfs_spaceman -c "freesp -d" /media/xfs
    agno    agbno      len
       0        4        1
       0        5        1
       0        6        1
       0        7        1
....

Signed-off-by: Dhruvesh Rathore <dhruvesh_r@outlook.com>
Signed-off-by: Amey Ruikar <ameyruikar@yahoo.com>
Signed-off-by: Somdeep Dey <somdeepdey10@gmail.com>
spaceman/freesp.c