From: Milan Broz Date: Thu, 24 Mar 2011 13:52:14 +0000 (+0000) Subject: dm: fix opening log and cow devices for read only tables X-Git-Tag: v2.6.39-rc1~57^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=024d37e95ec4a7ccc256973ab2feab01f4fbdd2d;p=pandora-kernel.git 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 Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed