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:
parent
a2bf3c6ee8
commit
837e7e513b
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user