[PATCH] ovl: copy MS_POSIXACL flag from upper layer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Catched by xfstests generic/319

Signed-off-by: Konstantin Khlebnikov <koct9i@xxxxxxxxx>
---
 fs/overlayfs/super.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/fs/overlayfs/super.c b/fs/overlayfs/super.c
index ba28b007005e..e6ae59c7119c 100644
--- a/fs/overlayfs/super.c
+++ b/fs/overlayfs/super.c
@@ -972,6 +972,10 @@ static int ovl_fill_super(struct super_block *sb, void *data, int silent)
 			goto out_put_workpath;
 		}
 		sb->s_stack_depth = upperpath.mnt->mnt_sb->s_stack_depth;
+
+		/* Copy MS_POSIXACL flag from upper layer */
+		sb->s_flags &= ~MS_POSIXACL;
+		sb->s_flags |= upperpath.mnt->mnt_sb->s_flags & MS_POSIXACL;
 	}
 	err = -ENOMEM;
 	lowertmp = kstrdup(ufs->config.lowerdir, GFP_KERNEL);

--
To unsubscribe from this list: send the line "unsubscribe linux-unionfs" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Filesystems Devel]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux