mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-14 05:55:17 +00:00
dm: fix opening log and cow devices for read only tables
If a table is read-only, also open any log and cow devices it uses read-only. Previously, even read-only devices were opened read-write internally. After patch75f1dc0d07block: check bdev_read_only() from blkdev_get() was applied, loading such tables began to fail. The patch was reverted bye51900f7d3block: revert block_dev read-only check but this patch fixes this part of the code to work with the original patch. Signed-off-by: Milan Broz <mbroz@redhat.com> Signed-off-by: Alasdair G Kergon <agk@redhat.com>
This commit is contained in:
parent
4bbba111d9
commit
024d37e95e
2 changed files with 2 additions and 2 deletions
Loading…
Add table
Add a link
Reference in a new issue