From: Oleg Drokin Date: Fri, 12 Jul 2024 14:25:13 +0000 (-0400) Subject: LU-18030 llite: make ll_set_acl send xattr to server unmodified X-Git-Tag: 2.15.91~58 X-Git-Url: https://git.whamcloud.com/?a=commitdiff_plain;h=75f55f99a328923ec9fb5bb4ca3418aa11bbe336;p=fs%2Flustre-release.git LU-18030 llite: make ll_set_acl send xattr to server unmodified Otherwise posix_acl_update_mode might convert acl into inode mode change and as the result it's lost and the existing ACL xattr is removed (if any Change-Id: I3956beac04889a657f76f9b36dbe97518ae9f2ac Signed-off-by: Oleg Drokin Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55715 Tested-by: jenkins Tested-by: Maloo Reviewed-by: Andreas Dilger Reviewed-by: Sebastien Buisson --- diff --git a/lustre/llite/acl.c b/lustre/llite/acl.c index d3a8a91..7ae8f13 100644 --- a/lustre/llite/acl.c +++ b/lustre/llite/acl.c @@ -90,9 +90,6 @@ int ll_set_acl(struct mnt_idmap *map, switch (type) { case ACL_TYPE_ACCESS: name = XATTR_NAME_POSIX_ACL_ACCESS; - if (acl) - rc = posix_acl_update_mode(map, inode, - &inode->i_mode, &acl); break; case ACL_TYPE_DEFAULT: