From: Joe Thornber Date: Fri, 10 May 2013 13:37:19 +0000 (+0100) Subject: dm thin: open dev read only when possible X-Git-Tag: v3.10-rc1~12^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5d0db96d13a4e2cd22b52494fb19ce5a9c8b8d90;p=pandora-kernel.git dm thin: open dev read only when possible If a thin pool is created in read-only-metadata mode then only open the metadata device read-only. Previously it was always opened with FMODE_READ | FMODE_WRITE. (Note that dm_get_device() still allows read-only dm devices to be used read-write at the moment: If I create a read-only linear device for the metadata, via dmsetup load --readonly, then I can still create a rw pool out of it.) Signed-off-by: Joe Thornber Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed