From: Mikulas Patocka Date: Thu, 12 Aug 2010 03:13:51 +0000 (+0100) Subject: dm snapshot: test chunk size against both origin and snapshot X-Git-Tag: v2.6.36-rc1~51^2~30 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c24110450650f17f7d3ba4fbe01f01ac5a115456;p=pandora-kernel.git dm snapshot: test chunk size against both origin and snapshot Validate chunk size against both origin and snapshot sector size Don't allow chunk size smaller than either origin or snapshot logical sector size. Reading or writing data not aligned to sector size is not allowed and causes immediate errors. This requires us to open the origin before initialising the exception store and to export dm_snap_origin. Cc: stable@kernel.org Signed-off-by: Mikulas Patocka Reviewed-by: Mike Snitzer Signed-off-by: Alasdair G Kergon --- Reading git-diff-tree failed