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.67.5~23 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=0106569a88a92aa94fbc5efc6a0a142ad0de325d;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 (cherry picked from commit 3c0042cde5a12de0f554a16b227ab437c6254ddd) --- diff --git a/src/pybind/rbd.py b/src/pybind/rbd.py index 6e9ca8a2252..6d2cd9af162 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)