]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
librbd: remove duplicate read_only test in librbd::async_flatten 5856/head
authorrunsisi <runsisi@hust.edu.cn>
Wed, 9 Sep 2015 14:34:09 +0000 (22:34 +0800)
committerrunsisi <runsisi@hust.edu.cn>
Wed, 9 Sep 2015 14:37:04 +0000 (22:37 +0800)
Signed-off-by: runsisi <runsisi@hust.edu.cn>
src/librbd/internal.cc

index 8b9f3b9dc4573cb887c11db954723d72de0bfad3..8fb04b649703e3422df705b1215d8969e68eb2f1 100644 (file)
@@ -2844,7 +2844,7 @@ reprotect_and_return_err:
        lderr(cct) << "image has no parent" << dendl;
        return -EINVAL;
       }
-      if (ictx->snap_id != CEPH_NOSNAP || ictx->read_only) {
+      if (ictx->snap_id != CEPH_NOSNAP) {
        lderr(cct) << "snapshots cannot be flattened" << dendl;
        return -EROFS;
       }