rbd: snap list should open image as read-only

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
Jason Dillaman 2016-03-15 10:57:48 -04:00
parent 0a92973bec
commit 8a7249196b

View File

@ -175,7 +175,7 @@ int execute_list(const po::variables_map &vm) {
librados::Rados rados;
librados::IoCtx io_ctx;
librbd::Image image;
r = utils::init_and_open_image(pool_name, image_name, "", false, &rados,
r = utils::init_and_open_image(pool_name, image_name, "", true, &rados,
&io_ctx, &image);
if (r < 0) {
return r;