]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
fuse2fs: fix fallocate zero range
authorDarrick J. Wong <djwong@kernel.org>
Wed, 21 May 2025 22:40:39 +0000 (15:40 -0700)
committerTheodore Ts'o <tytso@mit.edu>
Fri, 23 May 2025 13:41:20 +0000 (09:41 -0400)
Allow this flag when we're checking flags in op_fallocate.

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

index 800122fc039bcb3f453d6fced9a965fab2a4d507..0d65d63b7eeb13fa5afd8f25c6838964a78db706 100644 (file)
@@ -3853,7 +3853,7 @@ static int op_fallocate(const char *path EXT2FS_ATTR((unused)), int mode,
        int ret;
 
        /* Catch unknown flags */
-       if (mode & ~(FL_PUNCH_HOLE_FLAG | FL_KEEP_SIZE_FLAG))
+       if (mode & ~(FL_ZERO_RANGE_FLAG | FL_PUNCH_HOLE_FLAG | FL_KEEP_SIZE_FLAG))
                return -EOPNOTSUPP;
 
        pthread_mutex_lock(&ff->bfl);