]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-fuse: fix enumerate_images() image names buffer size issue 1425/head
authorIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 11 Mar 2014 14:00:37 +0000 (16:00 +0200)
committerIlya Dryomov <ilya.dryomov@inktank.com>
Tue, 11 Mar 2014 14:00:37 +0000 (16:00 +0200)
commitfe4ad291c6f4b725cd87ac30eea401decf3fc5e6
treea335591bab5f097c993d31207120965d4341ee66
parentdb0c37829cf92b163833c5824a027e72610b4e25
rbd-fuse: fix enumerate_images() image names buffer size issue

Image names buffer is fixed at 1024.  This turns out to be not enough:
there are at least two "rbd-fuse rbd_list: error %d Numerical result
out of range" reports on the ML.  Fix it by calling rbd_list() twice to
first get the expected buffer size.  Also, get rid of the memory leak
and tweak the error message while at it.

Signed-off-by: Ilya Dryomov <ilya.dryomov@inktank.com>
src/rbd_fuse/rbd-fuse.c