From: Bryn Reeves Date: Tue, 5 Jul 2016 18:35:13 +0000 (UTC) Subject: master - dmstats: allow --statstype to override report defults Message-ID: <20160705183513.8641360FDE@fedorahosted.org> List-Id: To: lvm-devel@redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Gitweb: http://git.fedorahosted.org/git/?p=lvm2.git;a=commitdiff;h=4ebc6b75cb2446f7b65e9d34febe216414247bc5 Commit: 4ebc6b75cb2446f7b65e9d34febe216414247bc5 Parent: b7cd37791527f25cbc619a3748eff62a019c4373 Author: Bryn M. Reeves AuthorDate: Wed Jun 29 10:19:28 2016 +0100 Committer: Bryn M. Reeves CommitterDate: Tue Jul 5 19:29:50 2016 +0100 dmstats: allow --statstype to override report defults --- tools/dmsetup.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/tools/dmsetup.c b/tools/dmsetup.c index ae04c9d..8932921 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);