[LU-8598] flaw in the ldiskfs group quota enforcement Created: 09/Sep/16 Updated: 04/Mar/17 Resolved: 04/Mar/17 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.5.3 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Minor |
| Reporter: | Bruno Travouillon (Inactive) | Assignee: | Niu Yawei (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Lustre 2.5.3.90 w/ Bull patches, ldiskfs backend |
||
| Issue Links: |
|
||||||||
| Epic/Theme: | Quota | ||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
A user found out that the Lustre group quota enforcement can be overwhelmed Here is an example provided by our customer. On their system a user is a member The example below shows how easily the limits can be circumvented when new cli1$ lfs quota -g matlab /scratch Disk quotas for group matlab (gid 1000): Filesystem kbytes quota limit grace files quota limit grace /scratch 0 0 0 - 1* 1 1 - cli1$ cli1$ cli1$ for i in {0..4999}; do touch file.$i && chgrp matlab file.$i; done cli1$ lfs quota -g matlab /scratch Disk quotas for group matlab (gid 1000): Filesystem kbytes quota limit grace files quota limit grace /scratch 0 0 0 - 5001* 1 1 - This issue is easily reproducible. By looking at the debug log, the quota code The defect is in osd_declare_attr_set() where rc is changed to 0 if (rc == We can find the following comment in the code:
While this is true for the user ownership, this is not for the group ownership. A similar issue is already described in |
| Comments |
| Comment by Peter Jones [ 09/Sep/16 ] |
|
Niu Could you please advise with this issue? Thanks Peter |
| Comment by Gerrit Updater [ 09/Sep/16 ] |
|
Bruno Travouillon (bruno.travouillon@atos.net) uploaded a new patch: http://review.whamcloud.com/22421 |
| Comment by Niu Yawei (Inactive) [ 12/Sep/16 ] |
|
This isn't a ldiskfs specific issue, it's Lustre quota issue. To fix the group inode quota is relative easy, while fixing the group block quota requires much more work (which is described in |
| Comment by Bruno Travouillon (Inactive) [ 12/Sep/16 ] |
|
Indeed, I started to work on another patch for osd-zfs when http://review.whamcloud.com/22421 failed sanity-quota check. |