1
0
mirror of git://sourceware.org/git/lvm2.git synced 2025-01-03 05:18:29 +03:00

dmstats: allow --statstype to override report defults

This commit is contained in:
Bryn M. Reeves 2016-06-29 10:19:28 +01:00
parent a2bf3c6ee8
commit 837e7e513b

View File

@ -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);