XML validation does not check for duplicate <target> of filesystem devices
Software environment
- Operating system: fedora-34
- libvirt version: libvirt-client-7.0.0-4.fc34.x86_64
Description of problem
When defining a guest with filesystem devices, there is not check for duplicate entries.
Steps to reproduce
Add twice to an existing guest:
<filesystem type='mount' accessmode='passthrough'>
<driver type='virtiofs'/>
<source dir='/tmp/dir1/'/>
<target dir='dir1'/>
</filesystem>
Expected results:
See an error like the following:
error: XML error: target 'dir1' duplicated for filesystem sources
Edited by Peter Krempa