Bug#664550: xfs_quota: "report -p" doesn't show all projects

Sergio Gelato Sergio.Gelato at astro.su.se
Sun Mar 18 16:11:11 CDT 2012


Package: xfsprogs
Version: 3.1.4

When invoked without an explicit -U argument, the report and dump subcommands
of xfs_quota only mention projects that have a corresponding entry in
/etc/projid . This important fact is not mentioned in the man page.
It could easily result in loss of quota limit information across dump/restore
on systems where /etc/projid is out of date, corrupt or missing.

(Aside: even the fact that the dump subcommand accepts -L and -U isn't 
documented in the man page. Why not?)

With an explicit -U, the code switches from getprent() (which iterates
over the contents of /etc/projid) to a simple loop over all project IDs
in the given range. This is better, except possibly for performance if
the project ID space is sparse.




More information about the xfs mailing list