]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
get_xattr() can return more than 4KB 380/head
authorLoic Dachary <loic@dachary.org>
Tue, 25 Jun 2013 14:10:02 +0000 (16:10 +0200)
committerLoic Dachary <loic@dachary.org>
Tue, 25 Jun 2013 14:10:22 +0000 (16:10 +0200)
commit3016f46f53d4701ead1e30f2a3d67a39ca0050f8
tree8178ac96f0e47c35b5356d7477c476dbe38da3dc
parent37a20174fd22a79938ba9c93046e8830f4a3306f
get_xattr() can return more than 4KB

Instead of failing if the attribute to be returned is larger than 4KB,
double the buffer size each time librados.rados_getxattr returns
-errno.ERANGE and try again.

http://tracker.ceph.com/issues/4907 fixes #4907

Signed-off-by: Loic Dachary <loic@dachary.org>
src/pybind/rados.py