]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
qa: krbd_blkroset.t: update for separate hw and user read-only flags
authorIlya Dryomov <idryomov@gmail.com>
Wed, 17 Mar 2021 10:00:33 +0000 (11:00 +0100)
committerJason Dillaman <dillaman@redhat.com>
Thu, 18 Mar 2021 19:12:55 +0000 (15:12 -0400)
commit8f5f1e50a46fd0f06dd3c4fa35654df3ec5505a5
treee48dcfd87012e02d665c195a8a9494baa346e78c
parent161d05ca0baf6ef38e7d9b3453dc3e2627d11693
qa: krbd_blkroset.t: update for separate hw and user read-only flags

Since kernel 5.12, hardware read-only state and user read-only
policy (BLKROGET/SET ioctls) are tracked separately in the block
layer.  As the purpose of our ->set_read_only() method was exactly
that, it was removed.

As a side effect, BLKROSET no longer returns EROFS on an attempt
to make a read-only mapping read-write with "blockdev --setrw".
The policy gets updated, but the device remains read-only as before
because the hardware (== mapping) state is controlled by the driver.

Fixes: https://tracker.ceph.com/issues/49858
Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
(cherry picked from commit d72fca26edcff49d203ed6fb940e0cf331e943dd)
qa/rbd/krbd_blkroset.t