]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa/tasks/cephfs: use BytesIO for capturing binary
authorKefu Chai <kchai@redhat.com>
Sun, 5 Apr 2020 13:16:10 +0000 (21:16 +0800)
committerKefu Chai <kchai@redhat.com>
Sun, 14 Jun 2020 08:34:52 +0000 (16:34 +0800)
commit35a0fc5c4f5291ba12a5563335c0297e12d1e357
treeb8a9732ff450820484fe2f971c8f21802d5e96ee
parent18e218e1031213e06008cac2c8de0d15f2ed1e98
qa/tasks/cephfs: use BytesIO for capturing binary

this change partially reverts e46eb8348e0639ea162b7e224bca40e0257ad6ef.

xattrs could contain non-utf8 encoded data, and should be captured using
BytesIO. moreover, it will be fed to `ceph-dencoder`, which expects
binary when performing "import".

Signed-off-by: Kefu Chai <kchai@redhat.com>
(cherry picked from commit eb2c6b3740cee7c8e28c163f73525cbabf2e7faf)
qa/tasks/cephfs/filesystem.py