diff options
author | David Teigland <teigland@redhat.com> | 2022-09-15 09:45:21 -0500 |
---|---|---|
committer | David Teigland <teigland@redhat.com> | 2022-10-10 11:47:29 -0500 |
commit | 13c63f0cfa22a0bc89b8d528b8e2301c49fc7b0d (patch) | |
tree | fc9a073c93518b499f1210db30590407f3203b54 /tools/vgimportdevices.c | |
parent | c4e6d675de5b0df5a711971b7828933f07b0efd0 (diff) | |
download | lvm2-13c63f0cfa22a0bc89b8d528b8e2301c49fc7b0d.tar.gz |
lvmdevices: use deviceidtype option strictly
Only use the device id type specified by --deviceidtype,
and fail if that type is not available for the device.
Diffstat (limited to 'tools/vgimportdevices.c')
-rw-r--r-- | tools/vgimportdevices.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/vgimportdevices.c b/tools/vgimportdevices.c index 23c2718ff..ab359d31c 100644 --- a/tools/vgimportdevices.c +++ b/tools/vgimportdevices.c @@ -60,7 +60,7 @@ static int _vgimportdevices_single(struct cmd_context *cmd, idtypestr = pv->device_id_type; memcpy(pvid, &pvl->pv->id.uuid, ID_LEN); - device_id_add(cmd, pv->dev, pvid, idtypestr, NULL); + device_id_add(cmd, pv->dev, pvid, idtypestr, NULL, 0); vp->added_devices++; /* We could skip update if the device_id has not changed. */ |