]> 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)
committerIlya Dryomov <idryomov@gmail.com>
Tue, 9 Feb 2021 13:29:35 +0000 (14:29 +0100)
commit2f82c98f5a542a69057f3e78d232380eee14eff7
tree1f63f0491013428f02137ee045e758c3cd24ca20
parent707907ea3f6ff39968666af4ba718ceef8cd8953
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>
src/librbd/ManagedLock.cc