Milan Broz 024d37e95e 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 patch 75f1dc0d076d1c1168f2115f1941ea627d38bd5a
  block: check bdev_read_only() from blkdev_get()
was applied, loading such tables began to fail.  The patch
was reverted by e51900f7d38cbcfb481d84567fd92540e7e1d23a
  block: 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>
2011-03-24 13:52:14 +00:00
..
2011-01-13 19:59:55 +00:00
2010-08-12 04:14:11 +01:00
2011-01-13 20:00:02 +00:00
2007-10-20 02:01:26 +01:00
2010-08-12 04:14:12 +01:00
2010-08-12 04:14:08 +01:00
2011-01-13 20:00:02 +00:00
2011-01-13 20:00:02 +00:00
2010-10-29 16:40:33 +11:00
2010-09-10 12:35:38 +02:00