master - dmstats: make -v enable per area reports for 'stats list'
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=f3891e90e32d0b76dc8c3ef2fb9bddbe09ffb846 Commit: f3891e90e32d0b76dc8c3ef2fb9bddbe09ffb846 Parent: 0f3b81bb2e7de61457ec0f2a72f381b9992421c6 Author: Bryn M. Reeves <[email protected]> AuthorDate: Fri Aug 14 20:40:13 2015 +0100 Committer: Bryn M. Reeves <[email protected]> CommitterDate: Fri Aug 14 22:03:37 2015 +0100
dmstats: make -v enable per area reports for 'stats list'
When dmstats is run with -v or higher enable a per-area reporting mode for statistics regions. This will output one row per area (rather than one row per region) and adds additional fields of use when viewing areas:
area_id - index within the region assigned by libdm-stats
area_start - the start location of the area in the containing
device.
--- man/dmstats.8.in | 6 ++++++ tools/dmsetup.c | 43 +++++++++++++++++++++++++++++++++---------- 2 files changed, 39 insertions(+), 10 deletions(-)
man/dmstats.8.in +6 -0
@@ -63,6 +63,8 @@ dmstats \(em device-mapper statistics management .RB [ \-\-units .IR units ] .RB [ \-\-nosuffix ] +.RB [ \-\-nosuffix ] +.RB [ \-v | \-\-verbose \ [ \-v | \-\-verbose ] .br .B dmstats print .RI [ device_name ]
@@ -302,11 +304,15 @@ the list of report fields. .RI [ device_name ] .RB [ \-\-allprograms ] .RB [ \-\-programid +.RB [ \-v | \-\-verbose \ [ \-v | \-\-verbose ]] .IR id ] .br List the statistics regions registered on the device. If the \fB\-\-allprograms\fP switch is given all regions will be listed regardless of region program ID values. + +If \fB\-v\fP or \fB\-\-verbose\fP is given the report will include +a row of information for each area contained in each region displayed. .br .TP .B print
tools/dmsetup.c +33 -10
86 lines not on this page · raw message