]> git.ipfire.org Git - thirdparty/xfsprogs-dev.git/commit
xfs_quota: Don't ignore every error when asking for quota
authorArkadiusz Miskiewicz <arekm@maven.pl>
Tue, 30 Dec 2008 17:32:05 +0000 (18:32 +0100)
committerChristoph Hellwig <hch@brick.lst.de>
Tue, 30 Dec 2008 17:32:05 +0000 (18:32 +0100)
commitec4cd3121a2a352479d87e476d0fd0db70a1be73
tree8af6ebc649bdc6717a883e9237538c2b4febbcfa
parent39d09609abfe3ed20d4a26c61ea7fc151295dd12
xfs_quota: Don't ignore every error when asking for quota

Errors from quotactl() were silently ignored like:

$ xfs_quota -x -c "report -u -L 12000 -U 12001"
$

Print error messages for conditions other than ENOENT and ENOSYS
(these two aren't actually errors for the way quotactl is used).

We now get:

$ ./xfs_quota -x -c "report -u -L 12000 -U 12001"  /home
XFS_GETQUOTA: Operation not permitted
XFS_GETQUOTA: Operation not permitted
$

which is consistent with error reporting in rest of quotactl using code.

Reviewed-by: Christoph Hellwig <hch@lst.de>
quota/report.c