Spdk/test
Mike Gerdts 57fd506c57 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-09 17:58:11 +08:00
..
accel examples/accel/perf: add support for xor 2023-02-21 08:33:18 +00:00
app fuzz/llvm: provide a prefix to use when saving artifacts 2023-05-09 17:58:11 +08:00
bdev bdev_gpt: use unique partition GUID as bdev UUID 2023-05-09 17:58:11 +08:00
blobfs add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
blobstore add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
common pkgdep/git: Bump QEMU to latest 8.0.0 release 2023-05-09 17:58:11 +08:00
compress bdev/compress: Port to use accel_fw instead of compressdev 2023-01-20 10:26:21 +00:00
cpp_headers update Intel copyright notices 2022-11-10 08:28:53 +00:00
dd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
dma test/dma: call spdk_thread_exit() 2022-11-23 08:22:04 +00:00
dpdk_memory_utility add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
env add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
event autotest: unify style for test/ and ./test/ 2023-02-14 09:07:09 +00:00
external_code tests: Run make clean only when SPDK was configured 2023-02-02 09:05:56 +00:00
ftl test/ftl: add cases line to cover RPC bdev_ftl_unload 2023-01-17 20:32:58 +00:00
fuzz fuzz/llvm: move coverage data to llvm/coverage 2023-05-09 17:58:11 +08:00
interrupt test: wait_for_examine and delay in reap_unregistered_poller.sh 2023-05-09 17:58:11 +08:00
ioat add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
iscsi_tgt bdev/pmem: Removing bdev pmem - updated tests 2023-03-09 09:21:23 +00:00
json_config accel: add accel_set_options 2023-05-09 17:58:11 +08:00
lvol vbdev_lvol: allow degraded lvols to be deleted 2023-05-09 17:58:11 +08:00
make test/check_so_deps: Adjust printout when $SPDK_ABI_DIR is not set 2023-05-09 17:58:11 +08:00
nvme test/nvme: Lock FDP test to FDP-capable nvme only 2023-05-09 17:58:11 +08:00
nvmf test/nvmf: fully re-enable host/timeout.sh 2023-05-09 17:58:11 +08:00
ocf bdev/ocf: Update OCF to 22.6.1 2023-04-06 14:40:39 +00:00
openstack add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
packaging test/packaging: Export LD_LIBRARY_PATH, PKG_CONFIG_PATH setup 2023-05-09 17:58:11 +08:00
rpc lib/trace: add trace_get_info RPC 2022-12-05 09:50:38 +00:00
rpc_client add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
rpc_plugins autotest: Use rpc_cmd() for rpc plugin-based tests 2021-04-02 08:22:42 +00:00
scheduler test/scheduler: Merge cppc_cpufreq into acpi-cpufreq check 2023-03-22 07:08:22 +00:00
setup tests: Skip block devices marked as hidden 2023-05-09 17:58:11 +08:00
sma test/sma: limit number of vhost-blk devices to 2 2023-03-13 21:02:27 +00:00
spdkcli test/spdkcli: Wait until spdkcli_clear_config settled 2023-05-09 17:58:11 +08:00
thread thread: test SPDK spinlocks in an application 2022-12-06 21:20:17 +00:00
ublk test/ublk: add parameter for num devices 2023-01-25 10:52:36 +00:00
unit bdev_part: allow UUID to be specified 2023-05-09 17:58:11 +08:00
vfio_user test/vfio-user: reduce spdk_tgt memory allocation 2023-05-09 17:58:11 +08:00
vhost test/vhost: Create wrapper around wipefs 2023-05-09 17:58:11 +08:00
vmd add (c) and SPDX header to bash files as needed 2022-11-29 08:27:51 +00:00
Makefile test/lvol: test esnap clones with real bdevs 2023-05-09 17:58:11 +08:00
spdk_cunit.h update Intel copyright notices 2022-11-10 08:28:53 +00:00