]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd: improve log msgs when failing to enable mirroring on image 50343/head
authorPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Thu, 2 Mar 2023 10:29:19 +0000 (15:59 +0530)
committerPrasanna Kumar Kalever <prasanna.kalever@redhat.com>
Mon, 13 Mar 2023 12:48:51 +0000 (18:18 +0530)
commit828a0dea2d40ba0c1aa0a9d4b211f0fabc854350
tree66dc387cfabedd3187d4e184446d65441c562d00
parent0ad603862bf3cdd8b551a61ad8ea9691a2f5cb22
rbd: improve log msgs when failing to enable mirroring on image

Attempting to enable mirroring on an an image within a namespace bails
out without any useful msg.

$ rbd mirror image enable mi_pool/ns_0/big snapshot
2021-11-17T08:33:21.321+0000 7f4b36f9c2c0 -1 librbd::api::Mirror:
  image_enable: cannot enable mirroring in the current pool mirroring mode

Fixes: https://tracker.ceph.com/issues/58895
Signed-off-by: Prasanna Kumar Kalever <prasanna.kalever@redhat.com>
src/librbd/api/Mirror.cc