]> www.infradead.org Git - users/jedix/linux-maple.git/commit
dm zoned: check zone capacity
authorDamien Le Moal <damien.lemoal@wdc.com>
Wed, 19 May 2021 01:26:16 +0000 (10:26 +0900)
committerMike Snitzer <snitzer@redhat.com>
Wed, 2 Jun 2021 17:59:59 +0000 (13:59 -0400)
commite086adffd5112597c801933d1da7b6edb2bb9217
tree75bae062b82a33de1f2f9722d7ede35745c0c9c6
parent2de432b84c21e7cd806fb1d0a594a1aaa21b4de7
dm zoned: check zone capacity

The dm-zoned target cannot support zoned block devices with zones that
have a capacity smaller than the zone size (e.g. NVMe zoned namespaces)
due to the current chunk zone mapping implementation as it is assumed
that zones and chunks have the same size with all blocks usable.
If a zoned drive is found to have zones with a capacity different from
the zone size, fail the target initialization.

Signed-off-by: Damien Le Moal <damien.lemoal@wdc.com>
Cc: stable@vger.kernel.org # v5.9+
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
drivers/md/dm-zoned-metadata.c