]> git.feebdaed.xyz Git - 0xmirror/libvirt.git/commit
esx: Allow disk images in subdirectories
authorMichal Privoznik <mprivozn@redhat.com>
Wed, 19 Nov 2025 13:28:11 +0000 (14:28 +0100)
committerMichal Privoznik <mprivozn@redhat.com>
Thu, 20 Nov 2025 14:09:18 +0000 (15:09 +0100)
commit07d3cc9d578781ca7335480b371e27f84c6c8db7
tree91053e8be3bf76695a990d1ad7e0b13527a8cecd
parentf82d30307da8bea396a32dcab2ba9be5c3236b7c
esx: Allow disk images in subdirectories

The esxParseVMXFileName() function parses path to a disk image
trying to replace some "known" patterns (e.g. datastore paths).
A simple filename is treated as a path relative to .vmx file. But
disk images (and thus filenames) can be in a subdirectory,
relative to the .vmx file. For instance:

  subfolder/disk.vmdk

Adapt our parser to this fact.

Resolves: https://issues.redhat.com/browse/RHEL-122751
Signed-off-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Martin Kletzander <mkletzan@redhat.com>
src/esx/esx_driver.c