Skip to content

Commit

Permalink
Merge pull request #11948 from SUSE/wip-17671-hammer
Browse files Browse the repository at this point in the history
hammer: rbd: export diff should open image as read-only

Reviewed-by: Mykola Golub <mgolub@mirantis.com>
Reviewed-by: Jason Dillaman <dillaman@redhat.com>
  • Loading branch information
smithfarm committed Nov 23, 2016
2 parents 2f9869c + ab0786d commit 6e1ae86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rbd.cc
Expand Up @@ -3048,7 +3048,7 @@ if (!set_conf_param(v, p1, p2, p3)) { \
opt_cmd == OPT_STATUS)) {

if (opt_cmd == OPT_INFO || opt_cmd == OPT_SNAP_LIST ||
opt_cmd == OPT_EXPORT || opt_cmd == OPT_EXPORT || opt_cmd == OPT_COPY ||
opt_cmd == OPT_EXPORT || opt_cmd == OPT_EXPORT_DIFF || opt_cmd == OPT_COPY ||
opt_cmd == OPT_CHILDREN || opt_cmd == OPT_LOCK_LIST ||
opt_cmd == OPT_STATUS || opt_cmd == OPT_WATCH) {
r = rbd.open_read_only(io_ctx, image, imgname, NULL);
Expand Down

0 comments on commit 6e1ae86

Please sign in to comment.