fuse: Support RENAME_WHITEOUT flag
Subsystems (2)
PATCH 1/1 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]>
--- fs/fuse/dir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
fs/fuse/dir.c +1 -1
@@ -818,7 +818,7 @@ static int fuse_rename2(struct inode *olstruct fuse_conn *fc =get_fuse_conn (olddir);int err; -if (flags & ~(RENAME_NOREPLACE |RENAME_EXCHANGE )) +if (flags & ~(RENAME_NOREPLACE |RENAME_EXCHANGE |RENAME_WHITEOUT ))return -EINVAL ;if (flags) {
Quoted 8 lines · Vivek Goyal
Allow fuse to pass
RENAME_WHITEOUTto fuse server. Overlayfs on top of virtiofs usesRENAME_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]>
Thanks, applied.
Miklos