• Hannes Reinecke's avatar
    dm zoned: metadata version 2 · bd5c4031
    Hannes Reinecke authored
    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: default avatarHannes Reinecke <hare@suse.de>
    Reviewed-by: default avatarBob Liu <bob.liu@oracle.com>
    Reviewed-by: default avatarDamien Le Moal <damien.lemoal@wdc.com>
    Signed-off-by: default avatarMike Snitzer <snitzer@redhat.com>
    bd5c4031
dm-zoned-target.c 27 KB