]> www.infradead.org Git - users/hch/xfsprogs.git/commit
xfs_quota: use Q_XGETNEXTQUOTA for report and dump
authorEric Sandeen <sandeen@sandeen.net>
Thu, 4 Feb 2016 21:39:26 +0000 (08:39 +1100)
committerDave Chinner <david@fromorbit.com>
Thu, 4 Feb 2016 21:39:26 +0000 (08:39 +1100)
commit6a9a085e3b4f23ea0d136173f50ca3bb6d1f57d3
treeebc3e87e16b5d35ff2392ac760375eb66e0586f1
parentcc15c8cc8881e873d6b7826e540cb3498d97f3a8
xfs_quota: use Q_XGETNEXTQUOTA for report and dump

Rather than a loop over getpwnam() etc, use the Q_XGETNEXTQUOTA
command to iterate through all active quotas in quota
reports and quota file dump.

If Q_XGETNEXTQUOTA fails, go back to the old way.

Signed-off-by: Eric Sandeen <sandeen@redhat.com>
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Dave Chinner <david@fromorbit.com>
quota/quota.h
quota/report.c