libvirt/tests/storagepoolxml2xmlin
Cole Robinson a7fb2258ca storage: Sanitize pool target paths
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.
2010-05-25 12:30:44 -04:00
..
pool-dir.xml storage: Sanitize pool target paths 2010-05-25 12:30:44 -04:00
pool-disk.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-fs.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-iscsi-auth.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-iscsi.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-logical-create.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-logical.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-mpath.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-netfs.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-scsi.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00