]> git.baikalelectronics.ru Git - kernel.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>
Fri, 4 Jun 2021 16:07:28 +0000 (12:07 -0400)
commit82bcda11650da9663e02b99d4f9a4264c4f61d8f
tree278195754b009ed5b5a3c75cc40e3d6e63d0fe89
parente1c211c66608b233c9d61964bcc1a25c247efce9
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