From: Josh Durgin Date: Fri, 25 Oct 2013 00:25:16 +0000 (-0700) Subject: rbd.py: increase parent name size limit X-Git-Tag: v0.72-rc1~16^2 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=refs%2Fpull%2F764%2Fhead;p=ceph.git rbd.py: increase parent name size limit 64 characters isn't all that long. 4096 ought to be enough for anyone. Fixes: #6072 Backport: dumpling, cuttlefish Signed-off-by: Josh Durgin --- diff --git a/src/pybind/rbd.py b/src/pybind/rbd.py index 6e9ca8a22525..6d2cd9af1629 100644 --- a/src/pybind/rbd.py +++ b/src/pybind/rbd.py @@ -432,7 +432,7 @@ class Image(object): def parent_info(self): ret = -errno.ERANGE size = 8 - while ret == -errno.ERANGE and size < 128: + while ret == -errno.ERANGE and size <= 4096: pool = create_string_buffer(size) name = create_string_buffer(size) snapname = create_string_buffer(size)