]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: add dummy acl/user_xattr mount options
authorDarrick J. Wong <djwong@kernel.org>
Thu, 24 Apr 2025 21:40:16 +0000 (14:40 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Wed, 21 May 2025 14:19:23 +0000 (10:19 -0400)
ACLs and user xattrs are always supported, so add these mount options
and do nothing.

Signed-off-by: Darrick J. Wong <djwong@kernel.org>
Link: https://lore.kernel.org/r/174553064691.1160289.2390597214443719562.stgit@frogsfrogsfrogs
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
misc/fuse2fs.c

index 686643e1a56e88813ecc1bfc4c5c3d10b056cb34..1029f215a03ca3cf31c2f65c4282a33d954b2c23 100644 (file)
@@ -3728,6 +3728,7 @@ static int get_random_bytes(void *p, size_t sz)
 }
 
 enum {
+       FUSE2FS_IGNORED,
        FUSE2FS_VERSION,
        FUSE2FS_HELP,
        FUSE2FS_HELPFULL,
@@ -3743,7 +3744,10 @@ static struct fuse_opt fuse2fs_opts[] = {
        FUSE2FS_OPT("fuse2fs_debug",    debug,                  1),
        FUSE2FS_OPT("no_default_opts",  no_default_opts,        1),
        FUSE2FS_OPT("norecovery",       norecovery,             1),
-       FUSE2FS_OPT("offset=%lu",       offset,         0),
+       FUSE2FS_OPT("offset=%lu",       offset,                 0),
+
+       FUSE_OPT_KEY("acl",             FUSE2FS_IGNORED),
+       FUSE_OPT_KEY("user_xattr",      FUSE2FS_IGNORED),
 
        FUSE_OPT_KEY("-V",             FUSE2FS_VERSION),
        FUSE_OPT_KEY("--version",      FUSE2FS_VERSION),
@@ -3766,6 +3770,8 @@ static int fuse2fs_opt_proc(void *data, const char *arg,
                        return 0;
                }
                return 1;
+       case FUSE2FS_IGNORED:
+               return 0;
        case FUSE2FS_HELP:
        case FUSE2FS_HELPFULL:
                fprintf(stderr,