]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: krbd_exclusive_option.sh: update for recent kernel changes
authorIlya Dryomov <idryomov@gmail.com>
Wed, 4 Dec 2019 14:26:54 +0000 (15:26 +0100)
committerIlya Dryomov <idryomov@gmail.com>
Mon, 9 Dec 2019 16:29:13 +0000 (17:29 +0100)
commit50933b863a1d239bbca0a25663c0dbe7ab8963ce
treeb2bcfa5e1e1af363761602a7e1b6e04419a1211e
parent041a71b3e8c5474bb0f2de77e810ab7ba3acf635
qa: krbd_exclusive_option.sh: update for recent kernel changes

Since 5.3:
- a plain "rbd map" acquires the lock, so it's not different from
  "rbd map -o exclusive" in this regard
- if the lock is held by the exclusive peer, I/O is failed right away
  instead of blocking
- lock_timeout option is respected only by "rbd map" and not by I/O

Since 5.5:
- if the mapping is read-only, the lock isn't acquired

Added blacklisting test case, dropped lock_timeout test case.

Fixes: https://tracker.ceph.com/issues/43127
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
qa/workunits/rbd/krbd_exclusive_option.sh