Spdk/module/bdev
Mike Gerdts ff12a5ed6a bdev_gpt: use unique partition GUID as bdev UUID
In releases of SPDK prior to v23.01, GPT bdevs had a random UUID. This
ended with commit a1c7ae2d3f, which is OK
because a non-persistent UUID is not all that useful.

Per Table 5.6 in Section 5.3.3 of UEFI Spec 2.3, each partition has a
16-byte UniquePartitionGUID:

  GUID that is unique for every partition entry. Every partition ever
  created will have a unique GUID. This GUID must be assigned when the
  GPT Partition Entry is created.  The GPT Partition Entry is created
  whenever the NumberOfPartitionEntries in the GPT Header is increased
  to include a larger range of addresses.

With this change, GPT bdevs use this unique partition GUID as the bdev's
UUID.

Signed-off-by: Mike Gerdts <mgerdts@nvidia.com>
Change-Id: Id8e8aa9e7903d31f199e8cfdb487e45ce1524d7b
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17351
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Ben Walker <benjamin.walker@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
Community-CI: Mellanox Build Bot
2023-05-02 18:59:58 +00:00
..
aio so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
compress accel: move accel_module.h to include/spdk 2023-04-19 06:36:20 +00:00
crypto bdev/crypto: Put accel buffer when write completes 2023-05-02 18:50:41 +00:00
daos bdev/daos: using SPDK_CONTAINEROF instead of container_of 2023-04-25 10:10:48 +00:00
delay bdev/delay: add uuid option 2023-03-08 08:46:16 +00:00
error bdev/error: add option to provide UUID for error bdev 2023-04-13 12:12:58 +00:00
ftl module/bdev: Use error_response() rather than bool_response(false) for JSON RPCs 2023-01-31 21:40:09 +00:00
gpt bdev_gpt: use unique partition GUID as bdev UUID 2023-05-02 18:59:58 +00:00
iscsi bdev/iscsi: fix use-after-free in bdev_iscsi_command_cb() 2023-03-16 07:24:56 +00:00
lvol vbdev_lvol: esnap memdomain support 2023-05-02 18:32:19 +00:00
malloc bdev/malloc: report accel sequence support 2023-04-19 06:36:20 +00:00
null bdev: delete UUID generation from ephemeral bdevs 2023-04-13 12:12:58 +00:00
nvme bdev_nvme: fix heap-use-after-free when detaching controller 2023-04-24 09:20:33 +00:00
ocf bdev/ocf: Update OCF to 22.6.1 2023-04-06 14:40:39 +00:00
passthru bdev: remove spdk_bdev_ext_io_opts from spdk_bdev_io 2023-02-16 10:09:35 +00:00
raid module/raid: specify memory domain support per raid module 2023-04-17 09:36:34 +00:00
rbd bdev/rbd: Do not submit IOs through thread sending. 2023-04-27 09:35:04 +00:00
split so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
uring include: add libgen.h to stdinc.h 2023-04-26 17:32:13 +00:00
virtio so_ver: increase all major versions 2023-01-24 08:37:21 +00:00
xnvme bdev/xnvme: Use bdev_unregister_by_name() to delete a xnvme bdev 2023-01-31 21:40:09 +00:00
zone_block module/bdev: Use error_response() rather than bool_response(false) for JSON RPCs 2023-01-31 21:40:09 +00:00
Makefile bdev/pmem: Removed bdev pmem implementation 2023-03-09 09:21:23 +00:00