]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
pybind: fix libcephfs getxattr 7901/head
authorJohn Spray <john.spray@redhat.com>
Thu, 3 Mar 2016 13:20:49 +0000 (13:20 +0000)
committerJohn Spray <john.spray@redhat.com>
Mon, 14 Mar 2016 12:32:56 +0000 (12:32 +0000)
commit7043b594aec7c88e5aeb91bfb0aa463691065aa2
treeccb954f1207ac97c6c56e68d907baec3d04ec2a5
parent85cfa4f1d384b7bbbd811031b7013099aaafe706
pybind: fix libcephfs getxattr

The python bindings were expecting a different behaviour
than libcephfs actually has.  On overflow, it doesn't return
the data size, it just gives you -ERANGE.  The python bindings
need to cope with that, and also let you pass in a size param
so that you can handle it.

Signed-off-by: John Spray <john.spray@redhat.com>
src/pybind/cephfs/cephfs.pyx
src/test/pybind/test_cephfs.py