Whamcloud - gitweb
LU-18030 llite: make ll_set_acl send xattr to server unmodified 15/55715/4
authorOleg Drokin <green@whamcloud.com>
Fri, 12 Jul 2024 14:25:13 +0000 (10:25 -0400)
committerOleg Drokin <green@whamcloud.com>
Fri, 30 Aug 2024 06:00:07 +0000 (06:00 +0000)
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 <green@whamcloud.com>
Reviewed-on: https://review.whamcloud.com/c/fs/lustre-release/+/55715
Tested-by: jenkins <devops@whamcloud.com>
Tested-by: Maloo <maloo@whamcloud.com>
Reviewed-by: Andreas Dilger <adilger@whamcloud.com>
Reviewed-by: Sebastien Buisson <sbuisson@ddn.com>
lustre/llite/acl.c

index d3a8a91..7ae8f13 100644 (file)
@@ -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: