From: Darrick J. Wong <djwong@xxxxxxxxxx> When the kernel is running in iomap mode, it will also manage all the ACL updates and the resulting file mode changes for us. Disable the manual implementation of it in fuse2fs. Signed-off-by: "Darrick J. Wong" <djwong@xxxxxxxxxx> --- misc/fuse2fs.c | 4 ++-- misc/fuse4fs.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/misc/fuse2fs.c b/misc/fuse2fs.c index 95e850e3cd49f1..11ddf6a4001955 100644 --- a/misc/fuse2fs.c +++ b/misc/fuse2fs.c @@ -1939,7 +1939,7 @@ static int propagate_default_acls(struct fuse2fs *ff, ext2_ino_t parent, size_t deflen; int ret; - if (!ff->acl) + if (!ff->acl || fuse2fs_iomap_enabled(ff)) return 0; ret = __getxattr(ff, parent, XATTR_NAME_POSIX_ACL_DEFAULT, &def, @@ -3224,7 +3224,7 @@ static int op_chmod(const char *path, mode_t mode * of the user's groups, but FUSE only tells us about the primary * group. */ - if (!is_superuser(ff, ctxt)) { + if (!fuse2fs_iomap_enabled(ff) && !is_superuser(ff, ctxt)) { ret = in_file_group(ctxt, &inode); if (ret < 0) goto out; diff --git a/misc/fuse4fs.c b/misc/fuse4fs.c index 8d547e03f558df..ef6f3b33db99fd 100644 --- a/misc/fuse4fs.c +++ b/misc/fuse4fs.c @@ -2112,7 +2112,7 @@ static int fuse4fs_propagate_default_acls(struct fuse4fs *ff, ext2_ino_t parent, size_t deflen; int ret; - if (!ff->acl) + if (!ff->acl || fuse4fs_iomap_enabled(ff)) return 0; ret = fuse4fs_getxattr(ff, parent, XATTR_NAME_POSIX_ACL_DEFAULT, &def, @@ -3480,7 +3480,7 @@ static int fuse4fs_chmod(struct fuse4fs *ff, fuse_req_t req, ext2_ino_t ino, * of the user's groups, but FUSE only tells us about the primary * group. */ - if (!fuse4fs_is_superuser(ff, ctxt)) { + if (!fuse4fs_iomap_enabled(ff) && !fuse4fs_is_superuser(ff, ctxt)) { ret = fuse4fs_in_file_group(ff, req, inode); if (ret < 0) return ret;