From 3c0042cde5a12de0f554a16b227ab437c6254ddd Mon Sep 17 00:00:00 2001 From: Josh Durgin Date: Thu, 24 Oct 2013 17:25:16 -0700 Subject: [PATCH] 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 --- src/pybind/rbd.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.47.3