Skip to contentSkip to conversation

ocfs2-fix-remounting-needed-after-setfacl-command.patch removed from -mm tree

merged [email protected] 1 participant 1 message Aug 10, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: ocfs2: fix remounting needed after setfacl command
has been removed from the -mm tree. Its filename was
ocfs2-fix-remounting-needed-after-setfacl-command.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Gang He <[email protected]>
Subject: ocfs2: fix remounting needed after setfacl command

When use setfacl command to change a file's acl, the user cannot get the latest acl information from the file via getfacl command, until remounting the file system.

e.g.
setfacl -m u:ivan:rw /ocfs2/ivan
getfacl /ocfs2/ivan
getfacl: Removing leading '/' from absolute path names
file: ocfs2/ivan
owner: root
group: root
user::rw-
group::r--
mask::r--
other::r--

The latest acl record("u:ivan:rw") cannot be returned via getfacl command until remounting.

---

 fs/ocfs2/acl.c |    2 ++
 1 file changed, 2 insertions(+)
fs/ocfs2/acl.c renamed from fs/ocfs2/acl.c~ocfs2-fix-remounting-needed-after-setfacl-command +2 -0
@@ -256,6 +256,8 @@ static int ocfs2_set_acl(handle_t *handl
 		ret = ocfs2_xattr_set(inode, name_index, "", value, size, 0);
 
 	kfree(value);
+	if (!ret)
+		set_cached_acl(inode, type, acl);
 
 	return ret;
 }

_

Patches currently in -mm which might be from [email protected] are