Milan Broz 783874b050 dm crypt: reject sector_size feature if device length is not aligned to it
If a crypt mapping uses optional sector_size feature, additional
restrictions to mapped device segment size must be applied in
constructor, otherwise the device activation will fail later.

Fixes: 8f0009a225 ("dm crypt: optionally support larger encryption sector size")
Cc: stable@vger.kernel.org # 4.12+
Signed-off-by: Milan Broz <gmazyland@gmail.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
2017-10-04 10:49:58 -04:00
..
2016-11-01 09:43:26 -06:00
2017-07-25 14:54:20 -04:00
2017-05-08 17:15:12 -07:00
2017-08-28 11:47:18 -04:00
2017-06-09 09:27:32 -06:00
2017-06-09 09:27:32 -06:00
2015-08-13 12:31:57 -06:00