]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rbd.py: increase parent name size limit 764/head
authorJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Oct 2013 00:25:16 +0000 (17:25 -0700)
committerJosh Durgin <josh.durgin@inktank.com>
Fri, 25 Oct 2013 00:31:04 +0000 (17:31 -0700)
64 characters isn't all that long. 4096 ought to be enough for anyone.

Fixes: #6072
Backport: dumpling, cuttlefish
Signed-off-by: Josh Durgin <josh.durgin@inktank.com>
src/pybind/rbd.py

index 6e9ca8a22525da9d16eb3bdba491b878353671fa..6d2cd9af1629f32c45e8eb8d12bb7c8df75af714 100644 (file)
@@ -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)