]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
rbd-mirror: block proxied ops with -EROFS return code 9867/head
authorJason Dillaman <dillaman@redhat.com>
Wed, 22 Jun 2016 14:14:21 +0000 (10:14 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 22 Jun 2016 14:14:21 +0000 (10:14 -0400)
commit07b49df24e5f30460ce3ab584a89370ea3ff7cc8
tree6522d406f73e57c0e34652a5b710363a3fb6f5d8
parent93e2faf38e866fb3e32a7b3f3527d97215c60d31
rbd-mirror: block proxied ops with -EROFS return code

When replicating to a local image, the daemon will own the
exclusive lock and will receive any proxied maintenance ops
from other clients. Since the image is non-primary, respond
with -EROFS.

Fixes: http://tracker.ceph.com/issues/16411
Signed-off-by: Jason Dillaman <dillaman@redhat.com>
src/tools/rbd_mirror/image_replayer/OpenLocalImageRequest.cc