]> 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, 19 Sep 2018 18:52:48 +0000 (14:52 -0400)
commita84fbb2565fb603ea809487d920461d14442d188
treed6ec274ed4583057cb6ce3b636ef23d6013434f9
parent2057d99f451e3007d4fd05a88faa968319d0ba90
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>
src/librbd/ExclusiveLock.cc
src/librbd/ExclusiveLock.h
src/test/librbd/mock/MockExclusiveLock.h