Spdk/test/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
..
bdevio test/bdevio: Replace spdk_bdev_get_by_name() by spdk_bdev_open_ext() 2023-01-31 10:30:52 +00:00
bdevperf Add SPDX header to various files 2022-11-29 08:27:51 +00:00
bdev_raid.sh bdev/raid0: Support resize when increasing the size of base bdevs 2023-01-17 19:45:34 +00:00
blockdev.sh bdev_gpt: use unique partition GUID as bdev UUID 2023-05-02 18:59:58 +00:00
chaining.sh bdev/crypto: complete IOs on ENOMEM from accel 2023-04-19 06:36:20 +00:00
Makefile bdevperf: promote bdevperf from test to example application 2022-11-16 09:52:41 +00:00
nbd_common.sh add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
nonarray.json json: fix parsing json problems when json config is invalid. 2022-09-02 07:32:21 +00:00
nonenclosed.json json: fix parsing json problems when json config is invalid. 2022-09-02 07:32:21 +00:00