Whamcloud - gitweb
LU-18626 mdd: allow chgrp with read-only permissions 17/57717/4
authorMax Wang <wamax@amazon.com>
Fri, 10 Jan 2025 23:39:09 +0000 (23:39 +0000)
committerOleg Drokin <green@whamcloud.com>
Sun, 2 Feb 2025 06:30:23 +0000 (06:30 +0000)
commitee47ed2491e08ab293dfa2675d7d015bdb9b1031
tree9563c132c858cadca893dffa4e7b07fae097096f
parent3c32620b8ca84ccf5620b2188d41d1bca27eba02
LU-18626 mdd: allow chgrp with read-only permissions

In patch LU-11303, chgrp was modified to be asynchronous
and updates the quotas. However, this resulted in chgrp
calls failing for file owners with read-only permissions.

This commit relaxes the permission requirements for quota updates
for chgrp calls to allow read-only permissions.

Fixes: 83f5544d8518 ("LU-11303 quota: enforce block quota for chgrp")
Test-Parameters: testlist=pjdfstest
Signed-off-by: Max Wang <wamax@amazon.com>
Change-Id: I6c4b73d1d48cb2ffc4866ab2e03a86a6c723e960
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/57717
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Timothy Day <timday@amazon.com>
Reviewed-by: Oleg Drokin <green@whamcloud.com>
lustre/mdd/mdd_object.c
lustre/tests/sanity.sh