]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
librbd: helper to retrieve the correct error code for read-only op
authorJason Dillaman <dillaman@redhat.com>
Thu, 6 Sep 2018 21:15:50 +0000 (17:15 -0400)
committerJason Dillaman <dillaman@redhat.com>
Wed, 3 Oct 2018 15:25:32 +0000 (11:25 -0400)
commit59ee52640c6c15347f3a19e0cbd2188ca6b797ee
tree804b88d4d0336ec1e6366412d7b3f5db0d9aacb2
parentf9279f8f7773f161483916bf758740207ef684ba
librbd: helper to retrieve the correct error code for read-only op

When the exclusive lock is unlocked, the error code should be
-EBLACKLISTED when the client is blacklisted, otherwise -EROFS.

Signed-off-by: Jason Dillaman <dillaman@redhat.com>
(cherry picked from commit a84fbb2565fb603ea809487d920461d14442d188)
src/librbd/ExclusiveLock.cc
src/librbd/ExclusiveLock.h
src/test/librbd/mock/MockExclusiveLock.h