]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: push id/name printing down into report_mount()
authorEric Sandeen <sandeen@sandeen.net>
Sun, 20 Dec 2015 23:54:39 +0000 (10:54 +1100)
committerDave Chinner <david@fromorbit.com>
Sun, 20 Dec 2015 23:54:39 +0000 (10:54 +1100)
commita265445ecc454d7c88005f4bddb219969240abb6
tree215e90918d332efdc3c242c461dbe63dfd99aebc
parent5e2918c2cfc4db04e827f9e1ca8c8441ab45c9f7
xfs_quota: push id/name printing down into report_mount()

Push the printing of the id number and/or name during quota
reporting down into report_mount(), rather than doing it in
the caller.

This lets the next patch do a lookup of any ID found with
a quota, when upper/lower ID bounds are specified.  This patch,
however, changes no behavior.  Both the ID and the name are
passed in, and which one gets printed depends on the
presence of the NO_LOOKUP_FLAG.

If "NULL" is passed in (as in the upper/lower ID search case),
then as before, only the ID is printed.  Next patch changes this.

Drops a few lines of code as well.

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