]> git.baikalelectronics.ru Git - kernel.git/commit
dm zoned: metadata version 2
authorHannes Reinecke <hare@suse.de>
Mon, 11 May 2020 08:24:30 +0000 (10:24 +0200)
committerMike Snitzer <snitzer@redhat.com>
Wed, 20 May 2020 21:09:43 +0000 (17:09 -0400)
commit2323b108d8d937dddcf59942bcc3ebeaa72cb9b5
treea31a375c24e02dba81faa6daf64204e63e0190fb
parentab637a00dcacf98a3555e0bd486c5e91238325a8
dm zoned: metadata version 2

Implement handling for metadata version 2. The new metadata adds a
label and UUID for the device mapper device, and additional UUID for
the underlying block devices.

It also allows for an additional regular drive to be used for
emulating random access zones. The emulated zones will be placed
logically in front of the zones from the zoned block device, causing
the superblocks and metadata to be stored on that device.

The first zone of the original zoned device will be used to hold
another, tertiary copy of the metadata; this copy carries a generation
number of 0 and is never updated; it's just used for identification.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Bob Liu <bob.liu@oracle.com>
Reviewed-by: Damien Le Moal <damien.lemoal@wdc.com>
Signed-off-by: Mike Snitzer <snitzer@redhat.com>
Documentation/admin-guide/device-mapper/dm-zoned.rst
drivers/md/dm-zoned-metadata.c
drivers/md/dm-zoned-target.c
drivers/md/dm-zoned.h