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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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.


_______________________________________________
xfs mailing list
xfs@xxxxxxxxxxx
http://oss.sgi.com/mailman/listinfo/xfs


[Index of Archives]     [Linux XFS Devel]     [Linux Filesystem Development]     [Filesystem Testing]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux