master - dmsetup: Add --count and --interval to reports.
Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=a161e29c59e01605401c9096f5ad5ace2ae03d9a Commit: a161e29c59e01605401c9096f5ad5ace2ae03d9a Parent: 72f754e2bc571ada133057c5a248162dc349cf93 Author: Bryn M. Reeves <[email protected]> AuthorDate: Fri Jul 31 21:59:34 2015 +0100 Committer: Alasdair G Kergon <[email protected]> CommitterDate: Fri Jul 31 21:59:34 2015 +0100
dmsetup: Add --count and --interval to reports.
For example, to monitor active devices every second you can now run dmsetup info -c --count 0.
--- WHATS_NEW_DM | 2 + libdm/.exported_symbols.DM_1_02_104 | 5 +++ libdm/libdevmapper.h | 44 ++++++++++++++++++++++++ libdm/libdm-report.c | 44 ++++++++++++++++++++++++ man/dmsetup.8.in | 18 ++++++++++ tools/dmsetup.c | 64 ++++++++++++++++++++++++++++++----- 6 files changed, 168 insertions(+), 9 deletions(-)
WHATS_NEW_DM +2 -0
@@ -1,5 +1,7 @@ Version 1.02.104 - ================================= + Add dmsetup --interval and --count to repeat reports at specified intervals. + Add report interval and waiting functions to libdevmapper. Add dm_timestamp functions to libdevmapper. Version 1.02.103 - 24th July 2015
libdm/.exported_symbols.DM_1_02_104 +5 -0
@@ -1,3 +1,8 @@ +dm_report_set_interval_ms +dm_report_set_interval_ns +dm_report_get_interval_ms +dm_report_get_interval_ns +dm_report_wait dm_size_to_string dm_timestamp_alloc dm_timestamp_compare
libdm/libdevmapper.h +44 -0
50 lines not on this page · raw message
libdm/libdm-report.c +44 -0
53 lines not on this page · raw message
man/dmsetup.8.in +18 -0
@@ -42,6 +42,10 @@ dmsetup \(em low level logical volume management .IR sort_fields ] .RB [ \-S | \-\-select .IR Selection ] +.RB [ \-\-interval +.IR seconds ] +.RB [ \-\-count +.IR count ] .RI [ device_name ] .RE .br
@@ -187,6 +191,10 @@ In some cases these checks may slow down operations noticeably. .BR \-c | \-C | \-\-columns Display output in columns rather than as Field: Value lines. .TP +.B \-\-count \fIcount +Specify the number of times to repeat a report. Set this to zero +continue until interrupted. The default interval is one second. +.TP .BR \-h | \-\-help Outputs a summary of the commands available, optionally including the list of report fields (synonym with \fBhelp\fP command).
@@ -196,6 +204,12 @@ When returning any table information from the kernel report on the inactive table instead of the live table. Requires kernel driver version 4.16.0 or above. .TP +.B \-\-interval \fIseconds +Specify the interval in seconds between successive iterations for +repeating reports. If \-\-interval is specified but \-\-count is not, +reports will continue to repeat until interrupted. +The default interval is one second. +.TP .IR \fB\-\-manglename \ { none | hex | auto } Mangle any character not on a whitelist using mangling_mode when processing device-mapper device names and UUIDs. The names and UUIDs
@@ -355,6 +369,10 @@ Outputs some brief information about the device in the form: .IR fields ] .RB [ \-O | \-\-sort .IR sort_fields ] +.RB [ \-\-interval +.IR seconds ] +.RB [ \-\-count +.IR count ] .RI [ device_name ] .br Output you can customise.
tools/dmsetup.c +55 -9
145 lines not on this page · raw message