]> git.baikalelectronics.ru Git - kernel.git/commit
dm era: Verify the data block size hasn't changed
authorNikos Tsironis <ntsironis@arrikto.com>
Fri, 22 Jan 2021 15:25:53 +0000 (17:25 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 10 Feb 2021 18:31:16 +0000 (13:31 -0500)
commit121eb2d6860c67b4e05f5416354e4e46d96fcbd3
treebae628fca131aea6b0b25318ddd4253147427dc9
parent1f72c599bdfd60411dbfc96f64807e64f0a4ff60
dm era: Verify the data block size hasn't changed

dm-era doesn't support changing the data block size of existing devices,
so check explicitly that the requested block size for a new target
matches the one stored in the metadata.

Fixes: b83b01ee643a86 ("dm: add era target")
Cc: stable@vger.kernel.org # v3.15+
Signed-off-by: Nikos Tsironis <ntsironis@arrikto.com>
Reviewed-by: Ming-Hung Tsai <mtsai@redhat.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-era-target.c