Skip to content

Commit 32593ed

Browse files
Merge pull request ceph#53126 from tengjie5/origin/tmp2
cephfs-shell: getxattr fail while the xattr's length > 256 Reviewed-by: Rishabh Dave <[email protected]> Reviewed-by: Jos Collin <[email protected]> Reviewed-by: Neeraj Pratap Singh <[email protected]>
2 parents cb00a14 + 3774d73 commit 32593ed

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/tools/cephfs/shell/cephfs-shell

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1634,7 +1634,7 @@ class CephFSShell(Cmd):
16341634
"""
16351635
try:
16361636
poutput('{}'.format(cephfs.getxattr(args.path,
1637-
to_bytes(args.name)).decode('utf-8')))
1637+
to_bytes(args.name), size=65536).decode('utf-8')))
16381638
except libcephfs.Error as e:
16391639
set_exit_code_msg(msg=e)
16401640

0 commit comments

Comments
 (0)