bdev: delete UUID generation from ephemeral bdevs

Ensure no ephemeral bdev will generate its own UUID,
unless this value has been specified via RPC.
Generation is now being done by the bdev layer itself.

Change-Id: I11efe819a28a137b738959a96a7bdf8c79cfaf64
Signed-off-by: Krzysztof Karas <krzysztof.karas@intel.com>
Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17109
Community-CI: Mellanox Build Bot
Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com>
Tested-by: SPDK CI Jenkins <sys_sgci@intel.com>
Reviewed-by: Artur Paszkiewicz <artur.paszkiewicz@intel.com>
Reviewed-by: Jim Harris <james.r.harris@intel.com>
This commit is contained in:
Krzysztof Karas 2023-03-06 15:27:09 +01:00 committed by David Ko
parent 8540f3b107
commit c2213b4de5
4 changed files with 0 additions and 8 deletions

View File

@ -699,8 +699,6 @@ create_bdev_daos(struct spdk_bdev **bdev,
if (uuid) {
daos->disk.uuid = *uuid;
} else {
spdk_uuid_generate(&daos->disk.uuid);
}
daos->disk.ctxt = daos;

View File

@ -694,8 +694,6 @@ create_malloc_disk(struct spdk_bdev **bdev, const struct malloc_bdev_opts *opts)
}
if (!spdk_mem_all_zero(&opts->uuid, sizeof(opts->uuid))) {
spdk_uuid_copy(&mdisk->disk.uuid, &opts->uuid);
} else {
spdk_uuid_generate(&mdisk->disk.uuid);
}
mdisk->disk.max_copy = 0;

View File

@ -295,8 +295,6 @@ bdev_null_create(struct spdk_bdev **bdev, const struct spdk_null_bdev_opts *opts
}
if (opts->uuid) {
null_disk->bdev.uuid = *opts->uuid;
} else {
spdk_uuid_generate(&null_disk->bdev.uuid);
}
null_disk->bdev.ctxt = null_disk;

View File

@ -1225,8 +1225,6 @@ bdev_rbd_create(struct spdk_bdev **bdev, const char *name, const char *user_id,
if (uuid) {
rbd->disk.uuid = *uuid;
} else {
spdk_uuid_generate(&rbd->disk.uuid);
}
if (name) {