]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_quota: fix report command parsing
authorDave Chinner <dchinner@redhat.com>
Fri, 9 Nov 2012 07:02:58 +0000 (07:02 +0000)
committerMark Tinguely <tinguely@eagdhcp-232-125.americas.sgi.com>
Tue, 20 Nov 2012 23:06:19 +0000 (17:06 -0600)
commit19473a2ac1ac00f47e68c81b7b5d30b549961765
tree1fdde93397774838d73eeebee207761b0786ef76
parent1adfff6fb6450277a68d3b3aebde814ebdffac6f
xfs_quota: fix report command parsing

The report command line needs to be parsed as a whole not as
individual elements - report_f() is set up to do this correctly.
When treated as non-global command line, the report function is
called once for each command line arg, resulting in reports being
issued multiple times.

Set the command to be a global command so that it is only called
once.

Signed-off-by: Dave Chinner <dchinner@redhat.com>
Reviewed-by: Mark Tinguely <tinguely@sgi.com>
Signed-off-by: Mark Tinguely <tinguely@sgi.com>
quota/report.c