From: Yan, Zheng Date: Mon, 24 Mar 2014 11:15:05 +0000 (+0800) Subject: ceph: don't include ceph.{file,dir}.layout vxattr in listxattr() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cc48c3e85f7fc48092f2e9874f1a07dd997d9184;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git ceph: don't include ceph.{file,dir}.layout vxattr in listxattr() This avoids 'cp -a' modifying layout of new files/directories. Signed-off-by: Yan, Zheng --- diff --git a/fs/ceph/xattr.c b/fs/ceph/xattr.c index 28549d5f2789..c9c2b887381e 100644 --- a/fs/ceph/xattr.c +++ b/fs/ceph/xattr.c @@ -231,7 +231,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = { .name_size = sizeof("ceph.dir.layout"), .getxattr_cb = ceph_vxattrcb_layout, .readonly = false, - .hidden = false, + .hidden = true, .exists_cb = ceph_vxattrcb_layout_exists, }, XATTR_LAYOUT_FIELD(dir, layout, stripe_unit), @@ -258,7 +258,7 @@ static struct ceph_vxattr ceph_file_vxattrs[] = { .name_size = sizeof("ceph.file.layout"), .getxattr_cb = ceph_vxattrcb_layout, .readonly = false, - .hidden = false, + .hidden = true, .exists_cb = ceph_vxattrcb_layout_exists, }, XATTR_LAYOUT_FIELD(file, layout, stripe_unit),