]> git.ipfire.org Git - thirdparty/libvirt.git/commit
virdevmapper: Always use device name for finding targets
authorBhavin Gandhi <bhavin192@geeksocket.in>
Wed, 2 Jul 2025 19:09:33 +0000 (00:39 +0530)
committerDaniel P. Berrangé <berrange@redhat.com>
Thu, 10 Jul 2025 09:30:15 +0000 (10:30 +0100)
commitbf8c7af771f1e2de24b28c2d04b6113796937f7f
tree3d664f091478137f369c6ffe457f10741c5c0c35
parentedf7d9f29adff125ea0d56ddb53afda50cdd5cab
virdevmapper: Always use device name for finding targets

DM_TABLE_DEPS expects a device name in dm_ioctl.name. In one of the
cases, full path of the device was getting returned causing the ioctl
call to fail with `ENXIO (No such device or address)`.

Also rename the function and variable names to better reflect that we
are dealing with DM device names and not paths.

This got introduced in 22494556542c676d1b9e7f1c1f2ea13ac17e1e3e
Resolves: https://gitlab.com/libvirt/libvirt/-/issues/790

Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
Signed-off-by: Bhavin Gandhi <bhavin192@geeksocket.in>
src/util/virdevmapper.c