mirror of
https://github.com/ceph/ceph
synced 2024-12-17 17:05:42 +00:00
rbd: snap list should open image as read-only
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
This commit is contained in:
parent
0a92973bec
commit
8a7249196b
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user