]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
librbd: treat EROFS as expected in handle_acquire_lock()
authorIlya Dryomov <idryomov@gmail.com>
Sun, 7 Feb 2021 14:09:24 +0000 (15:09 +0100)
committerJason Dillaman <dillaman@redhat.com>
Tue, 9 Mar 2021 21:50:05 +0000 (16:50 -0500)
commitdd7e76250ac38a8fd26ddcf604b37cbe07ad39f4
tree9bd8f04a3f4392426a5d4c1a6ab387247f8e835f
parent0d552e9576375976d0eb93c578e6e8f2143922a8
librbd: treat EROFS as expected in handle_acquire_lock()

If the peer refuses to release exclusive lock (e.g. in case automatic
exclusive lock transitions are disabled), EROFS is retured.  Suppress
a rather confusing "Read-only file system" error message -- this case
is no different from EBUSY or EAGAIN.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit 2f82c98f5a542a69057f3e78d232380eee14eff7)
src/librbd/ManagedLock.cc