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)
commitbd5c40313a1467e4683d92456fc5219d94823f24
treea31a375c24e02dba81faa6daf64204e63e0190fb
parentdc076c838f65723325001c977b39e55fc6ba0fa7
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