]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test/librbd: extend TestLibRBD.RenameViaLockOwner
authorMykola Golub <mgolub@suse.com>
Mon, 22 Feb 2021 12:53:38 +0000 (12:53 +0000)
committerMykola Golub <mgolub@suse.com>
Fri, 5 Mar 2021 17:04:34 +0000 (19:04 +0200)
commit8bfe459182ff832d3c52375c41305ce58974e068
treed549bf6c0fbf050c83a3cf493b8c96a4b6aab229
parentefd13d1aa29456acdf6c255cf277b3671f011cde
test/librbd: extend TestLibRBD.RenameViaLockOwner

To cover the following case:

- Client A has image opened but does not owns the lock.
- Client B renames the image (client A is not aware of it).
- Client A becomes the lock owner.
- Client B requests rename, which is proxied to the client A.

Signed-off-by: Mykola Golub <mgolub@suse.com>
(cherry picked from commit 2d2e04e86bcc666e3abaceeeef7e1598dcc9fb94)
src/test/librbd/test_librbd.cc