[LU-12694] make "lfs quota" display correct group quota information Created: 26/Aug/19 Updated: 01/Jun/20 Resolved: 07/Sep/19 |
|
| Status: | Resolved |
| Project: | Lustre |
| Component/s: | None |
| Affects Version/s: | Lustre 2.10.8 |
| Fix Version/s: | Lustre 2.13.0 |
| Type: | Bug | Priority: | Major |
| Reporter: | Tatsushi Takamura | Assignee: | Tatsushi Takamura |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Issue Links: |
|
||||||||
| Epic/Theme: | Quota | ||||||||
| Severity: | 3 | ||||||||
| Rank (Obsolete): | 9223372036854775807 | ||||||||
| Description |
|
lfs quota (without -g option) doesn't show correct group quota information # lfs quota /lustre/ Disk quotas for usr root (uid 0): Filesystem kbytes quota limit grace files quota limit grace /lustre/ 13208 0 0 - 1096 0 0 - Disk quotas for grp root (gid 0): Filesystem kbytes quota limit grace files quota limit grace /lustre/ 0 0 0 - 0 0 0 - * kbytes(0 is dispolayed) should be 13208 # lfs quota -g root /lustre/ Disk quotas for grp root (gid 0): Filesystem kbytes quota limit grace files quota limit grace /lustre/ 13208 0 0 - 1096 0 0 - This is because, on the server side GETQUOTA is not executed when oqctl->qc_dqblk.dqb_curspace not 0. So, qctl.qc_dqblk need to be cleared to display correct. static int quotactl_ioctl(struct ll_sb_info *sbi, struct if_quotactl *qctl) { <snip> if (cmd == Q_GETQUOTA && !(oqctl->qc_dqblk.dqb_valid & QIF_SPACE) && !oqctl->qc_dqblk.dqb_curspace) { |
| Comments |
| Comment by Gerrit Updater [ 26/Aug/19 ] |
|
Tatsushi Takamura (takamr.tatsushi@jp.fujitsu.com) uploaded a new patch: https://review.whamcloud.com/35917 |
| Comment by Gerrit Updater [ 07/Sep/19 ] |
|
Oleg Drokin (green@whamcloud.com) merged in patch https://review.whamcloud.com/35917/ |
| Comment by Peter Jones [ 07/Sep/19 ] |
|
Landed for 2.13 |