Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

tools: Modify "rados df" header's alignment #17549

Merged
merged 1 commit into from Sep 9, 2017
Merged

tools: Modify "rados df" header's alignment #17549

merged 1 commit into from Sep 9, 2017

Conversation

iliul
Copy link
Contributor

@iliul iliul commented Sep 7, 2017

Except for the first column,Other columns should remain the RIGHT alignment,Note the first line RD WR

before:

root@9d02aec4a204:~/ceph-12.2.0/build# rados df
2017-09-07 08:40:41.150406 7ff82598ef80 -1 WARNING: all dangerous and experimental features are enabled.
2017-09-07 08:40:41.150703 7ff82598ef80 -1 WARNING: all dangerous and experimental features are enabled.
2017-09-07 08:40:41.153671 7ff82598ef80 -1 WARNING: all dangerous and experimental features are enabled.
POOL_NAME           USED OBJECTS CLONES COPIES MISSING_ON_PRIMARY UNFOUND DEGRADED RD_OPS RD     WR_OPS WR    
.rgw.root           1113       4      0     12                  0       0        0    252   168k      4  4096 
cephfs_data_a          0       0      0      0                  0       0        0      0      0      0     0 
cephfs_metadata_a   2246      21      0     63                  0       0        0      0      0     42  8192 
default.rgw.control    0       8      0     24                  0       0        0      0      0      0     0 
default.rgw.log        0     191      0    573                  0       0        0  38609 38418k  19638     0 
default.rgw.meta    2593      14      0     42                  0       0        0      0      0     22 15360 

total_objects    238
total_used       3277M
total_avail      27634M
total_space      30911M
root@9d02aec4a204:~/ceph-12.2.0/build#

after:

root@ca340671cbb8:~/ceph/build# ./bin/rados df
2017-09-07 09:51:40.001495 7f07219fef80 -1 WARNING: all dangerous and experimental features are enabled.
2017-09-07 09:51:40.001747 7f07219fef80 -1 WARNING: all dangerous and experimental features are enabled.
2017-09-07 09:51:40.004527 7f07219fef80 -1 WARNING: all dangerous and experimental features are enabled.
POOL_NAME            USED OBJECTS CLONES COPIES MISSING_ON_PRIMARY UNFOUND DEGRADED RD_OPS    RD WR_OPS  WR 
.rgw.root           1.09K       4      0     12                  0       0        0    252  168K      4  4K 
cephfs_data_a           0       0      0      0                  0       0        0      0     0      0   0 
cephfs_metadata_a   2.19K      21      0     63                  0       0        0      0     0     42  8K 
default.rgw.control     0       8      0     24                  0       0        0      0     0      0   0 
default.rgw.log         0     207      0    621                  0       0        0  69205 67.4M  35278   0 
default.rgw.meta    2.53K      14      0     42                  0       0        0      0     0     22 15K 

total_objects    254
total_used       3.20G
total_avail      27.0G
total_space      30.2G
root@ca340671cbb8:~/ceph/build#

Signed-off-by: iliul liul124@chinaunicom.cn

Signed-off-by: iliul <liul124@chinaunicom.cn>
@iliul
Copy link
Contributor Author

iliul commented Sep 7, 2017

@xiexingguo Please help take a look,Thanks!

@tchaikov tchaikov merged commit 050a9a5 into ceph:master Sep 9, 2017
@iliul iliul deleted the fix-texttable-align branch September 9, 2017 04:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants