Skip to content

Commit 519525f

Browse files
rhvgoyalMiklos Szeredi
authored andcommitted
fuse: Support RENAME_WHITEOUT flag
Allow fuse to pass RENAME_WHITEOUT to fuse server. Overlayfs on top of virtiofs uses RENAME_WHITEOUT. Without this patch renaming a directory in overlayfs (dir is on lower) fails with -EINVAL. With this patch it works. Signed-off-by: Vivek Goyal <[email protected]> Signed-off-by: Miklos Szeredi <[email protected]>
1 parent 2f13982 commit 519525f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/fuse/dir.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -818,7 +818,7 @@ static int fuse_rename2(struct inode *olddir, struct dentry *oldent,
818818
struct fuse_conn *fc = get_fuse_conn(olddir);
819819
int err;
820820

821-
if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE))
821+
if (flags & ~(RENAME_NOREPLACE | RENAME_EXCHANGE | RENAME_WHITEOUT))
822822
return -EINVAL;
823823

824824
if (flags) {

0 commit comments

Comments
 (0)