]> git.apps.os.sepia.ceph.com Git - ceph-ci.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>
Tue, 7 Apr 2020 13:51:22 +0000 (21:51 +0800)
commiteb2c6b3740cee7c8e28c163f73525cbabf2e7faf
tree3a4d51f4df7924d0fba365c22d6effb8ca219b3d
parent51fc7a992204fb14aba2eb29d96c1785a79ca27f
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>
qa/tasks/cephfs/filesystem.py