summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBryn M. Reeves <bmr@redhat.com>2016-06-29 10:19:28 +0100
committerBryn M. Reeves <bmr@redhat.com>2016-07-05 19:53:16 +0100
commit837e7e513b7438f6691c7ed8c4974841652e858a (patch)
tree4d5794518acb372f3240d8ca995d05e8c3adc1f9
parenta2bf3c6ee8ae6e03bd1351e59f1a097c92205dec (diff)
downloadlvm2-837e7e513b7438f6691c7ed8c4974841652e858a.tar.gz
dmstats: allow --statstype to override report defults
-rw-r--r--tools/dmsetup.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/dmsetup.c b/tools/dmsetup.c
index ae04c9d99..893292119 100644
--- a/tools/dmsetup.c
+++ b/tools/dmsetup.c
@@ -5122,7 +5122,7 @@ static int _stats_report(CMD_ARGS)
_statstype |= (DM_STATS_WALK_ALL
| DM_STATS_WALK_SKIP_SINGLE_AREA);
- if (!strcmp(subcommand, "report"))
+ if (!strcmp(subcommand, "report") && !_switches[STATSTYPE_ARG])
/* suppress duplicate rows of output */
_statstype |= (DM_STATS_WALK_ALL
| DM_STATS_WALK_SKIP_SINGLE_AREA);