repquota not working correctly with xfs
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
quota |
Fix Released
|
Unknown
|
|||
quota (Ubuntu) |
Fix Released
|
Medium
|
Unassigned | ||
Precise |
Fix Released
|
Medium
|
Unassigned | ||
Quantal |
Fix Released
|
Medium
|
Unassigned |
Bug Description
SRU Justification:
[IMPACT]
* When using quota on systems with XFS on precise/quantal only the root quota is reported.
* This means that users of XFS cannot use repquota, as it does not return reliable results.
[TESTCASE]
* See bug below.
[Regression Potential]
* This patch only affects an XFS code path.
* This patch is already part of quota 4.01-1. It would be important to test on XFS and non-XFS partitions to see if functionality is as expected.
* This bug worked correctly in Lucid, and appears to be a regression in the upstream package between Lucid and Precise.
--
Description of the problem:
The command 'repquota' is not working properly with an XFS file system on 12.04 and later. It only reports root's quota. The same command worked well with 10.04, and the other quota commands (xfs_quota) seem to work properly as well.
Version affected: 12.04 LTS:
ii quota 4.00-3 implementation of the disk quota system
ii xfsprogs 3.1.7 Utilities for managing the XFS filesystem
How reproducible is the problem? Always.
Steps to Reproduce:
1. Create a XFS partition.
2. Create an entry in fstab such as:
/dev/vdb1 /mnt xfs defaults,
3. Run and compare the output of the following commands on 10.04 LTS , 12.04 LTS and 12.10.
$ sudo mount /mnt
$ sudo mkdir -p /mnt/test
$ sudo chown $USER:$GROUP /mnt/test
$ sudo repquota /mnt
$ sudo xfs_quota -x -c report /mnt
This appears to be a regression.
Changed in quota: | |
status: | Unknown → Confirmed |
Changed in quota: | |
status: | Confirmed → Fix Released |
description: | updated |
description: | updated |
There is already a debian bug here: bugs.debian. org/cgi- bin/bugreport. cgi?bug= 685356
http://
I've attached a patch based on the suggestion there, and can confirm this does fix the issue: bugs.debian. org/cgi- bin/bugreport. cgi?msg= 16;filename= quota_4. 00-4ubuntu1. debdiff; att=1;bug= 685356
http://