[LU-14696] read-only client mounts shouldn't allow quota changes Created: 21/May/21  Updated: 31/Mar/22  Resolved: 11/Sep/21

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.12.8, Lustre 2.15.0

Type: Bug Priority: Minor
Reporter: Hongchao Zhang Assignee: Hongchao Zhang
Resolution: Fixed Votes: 0
Labels: LTS12

Issue Links:
Related
Severity: 3
Rank (Obsolete): 9223372036854775807

 Description   

Currently, read-only Lustre mount does not prevent quota changes from being made to it.

# lfs quota -g abc123 .
Disk quotas for grp abc123 (gid 6901):
 Filesystem kbytes quota limit grace files quota limit grace
 . 43634815148 177167400960 186025771008 - 106943 14641000 15373050 -
# touch afile
touch: cannot touch 'afile': Read-only file system
# lfs setquota -g abc123 -I 15373999 .
# lfs quota -g abc123 .
Disk quotas for grp abc123 (gid 6901):
 Filesystem kbytes quota limit grace files quota limit grace
 . 43634815148 177167400960 186025771008 - 106943 14641000 15373999 -
#


 Comments   
Comment by Gerrit Updater [ 21/May/21 ]

Hongchao Zhang (hongchao@whamcloud.com) uploaded a new patch: https://review.whamcloud.com/43765
Subject: LU-14696 llite: check read only mount for setquota
Project: fs/lustre-release
Branch: master
Current Patch Set: 1
Commit: e8603b1a9ac493d56e2c437cd075740245d67392

Comment by Gerrit Updater [ 11/Sep/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/43765/
Subject: LU-14696 llite: check read only mount for setquota
Project: fs/lustre-release
Branch: master
Current Patch Set:
Commit: 29e00cecc6019fbdb5bd98511970970ac5ef5318

Comment by Peter Jones [ 11/Sep/21 ]

Landed for 2.15

Comment by Gerrit Updater [ 15/Sep/21 ]

"Hongchao Zhang <hongchao@whamcloud.com>" uploaded a new patch: https://review.whamcloud.com/44923
Subject: LU-14696 llite: check read only mount for setquota
Project: fs/lustre-release
Branch: b2_12
Current Patch Set: 1
Commit: e18c47a7fbd1d2520da2eb091362658191219440

Comment by Gerrit Updater [ 18/Oct/21 ]

"Oleg Drokin <green@whamcloud.com>" merged in patch https://review.whamcloud.com/44923/
Subject: LU-14696 llite: check read only mount for setquota
Project: fs/lustre-release
Branch: b2_12
Current Patch Set:
Commit: 2422773e37f6cc2b98408e44f95d1f928b546854

Generated at Sat Feb 10 03:11:59 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.