]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
cephfs-shell: bump up acceptable xattr value len to 64K 53126/head
authorTeng Jie <tengjie5@asiainfo.com>
Wed, 23 Aug 2023 09:01:10 +0000 (17:01 +0800)
committerTeng Jie <tengjie5@asiainfo.com>
Wed, 11 Oct 2023 07:49:49 +0000 (15:49 +0800)
Fixes: https://tracker.ceph.com/issues/62545
Signed-off-by: teng jie <tengjie5@asiainfo.com>
src/tools/cephfs/shell/cephfs-shell

index 60ad79c6126cc5eb4de79939523c42ca840d7808..96a606f24d441e3bac4622a6f60d3c7ef1614927 100755 (executable)
@@ -1633,7 +1633,7 @@ class CephFSShell(Cmd):
         """
         try:
             poutput('{}'.format(cephfs.getxattr(args.path,
-                                to_bytes(args.name)).decode('utf-8')))
+                                to_bytes(args.name), size=65536).decode('utf-8')))
         except libcephfs.Error as e:
             set_exit_code_msg(msg=e)