Skip to content

Commit cc48c3e

Browse files
Yan, ZhengSage Weil
authored andcommitted
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 <zheng.z.yan@intel.com>
1 parent 1e5c664 commit cc48c3e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎fs/ceph/xattr.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,7 @@ static struct ceph_vxattr ceph_dir_vxattrs[] = {
231231
.name_size = sizeof("ceph.dir.layout"),
232232
.getxattr_cb = ceph_vxattrcb_layout,
233233
.readonly = false,
234-
.hidden = false,
234+
.hidden = true,
235235
.exists_cb = ceph_vxattrcb_layout_exists,
236236
},
237237
XATTR_LAYOUT_FIELD(dir, layout, stripe_unit),
@@ -258,7 +258,7 @@ static struct ceph_vxattr ceph_file_vxattrs[] = {
258258
.name_size = sizeof("ceph.file.layout"),
259259
.getxattr_cb = ceph_vxattrcb_layout,
260260
.readonly = false,
261-
.hidden = false,
261+
.hidden = true,
262262
.exists_cb = ceph_vxattrcb_layout_exists,
263263
},
264264
XATTR_LAYOUT_FIELD(file, layout, stripe_unit),

0 commit comments

Comments
 (0)