mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-24 06:35:24 +00:00
a7fb2258ca
Spurious / in a pool target path makes life difficult for apps using the GetVolByPath, and doing other path based comparisons with pools. This has caused a few issues for virt-manager users: https://bugzilla.redhat.com/show_bug.cgi?id=494005 https://bugzilla.redhat.com/show_bug.cgi?id=593565 Add a new util API which removes spurious /, virFileSanitizePath. Sanitize target paths when parsing pool XML, and for paths passed to GetVolByPath. v2: Leading // must be preserved, properly sanitize path=/, sanitize away /./ -> / v3: Properly handle starting ./ and ending /. v4: Drop all '.' handling, just sanitize / for now. |
||
---|---|---|
.. | ||
pool-dir.xml | ||
pool-disk.xml | ||
pool-fs.xml | ||
pool-iscsi-auth.xml | ||
pool-iscsi.xml | ||
pool-logical-create.xml | ||
pool-logical.xml | ||
pool-mpath.xml | ||
pool-netfs.xml | ||
pool-scsi.xml |