libvirt/tests/storagepoolxml2xmlin
Ján Tomko 738dc3f4ad conf: storage: also sanitize source dir
Commit a7fb2258 added sanitization of storage pool target paths,
however source dir paths were left unsanitized.

A netfs pool with:
<source>
  <host name='10.20.30.40'/>
  <dir path='/nfs/'/>
</source>
will not be correctly detected as mounted by
virStorageBackendFileSystemIsMounted, because it shows up in the
mount list without the trailing slash.

Sanitize the source dir as well.

https://bugzilla.redhat.com/show_bug.cgi?id=1723247

Signed-off-by: Ján Tomko <jtomko@redhat.com>
Acked-by: Peter Krempa <pkrempa@redhat.com>
2019-06-25 17:11:56 +02:00
..
pool-dir-naming.xml storage: use valid XML for awkward volume names 2013-11-21 17:29:47 -07:00
pool-dir.xml Update xml schemas according to libvirt source 2012-08-02 14:36:23 -06:00
pool-disk-device-nopartsep.xml conf: Add storage pool device attribute part_separator 2016-01-19 13:02:59 -05: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-gluster-sub.xml storage: document gluster pool 2013-11-25 11:03:19 -07:00
pool-gluster.xml storage: document gluster pool 2013-11-25 11:03:19 -07:00
pool-iscsi-auth.xml storage: allow interleave in pool XML 2013-10-16 10:15:44 -06:00
pool-iscsi-direct-auth.xml storage: Introduce iscsi_direct pool type 2018-08-06 12:23:55 +02:00
pool-iscsi-direct.xml storage: Introduce iscsi_direct pool type 2018-08-06 12:23:55 +02:00
pool-iscsi-multiiqn.xml Add multiIQN tests 2010-06-08 13:14:26 -04:00
pool-iscsi-vendor-product.xml storage_pool: Rework chap XML to mimic ceph 2013-07-15 12:41:12 -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 Make logical pools independent on target path 2013-07-16 12:16:37 +02:00
pool-logical-noname.xml schema: do not require name for certain pool types 2017-03-29 10:36:55 +02:00
pool-logical-nopath.xml Make logical pools independent on target path 2013-07-16 12:16:37 +02: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-auto.xml tests: Add storagepool xml test for netfs-auto 2018-12-13 07:09:42 -05:00
pool-netfs-cifs.xml storage: Fix the schema and add tests for cifs pool 2015-06-15 17:25:33 -04:00
pool-netfs-gluster-without-slash.xml schema: pool: netfs: Don't enforce slash in glusterfs pool source 2014-07-21 18:28:17 +02:00
pool-netfs-gluster.xml storage: fix RNG validation of gluster via netfs 2013-11-13 12:10:00 -07:00
pool-netfs-ns-mountopts.xml storage: change custom namespace URIs to drop '/source' component 2019-01-31 12:34:05 +00:00
pool-netfs-protocol-ver.xml conf: Add optional NFS Source Pool <protocol ver='n'/> option 2019-01-29 19:15:27 -05:00
pool-netfs-slash.xml conf: storage: also sanitize source dir 2019-06-25 17:11:56 +02:00
pool-netfs.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-rbd-ipv6.xml storage: escape ipv6 for ceph mon hosts to librados 2019-06-18 17:14:17 +02:00
pool-rbd-ns-configopts.xml storage: change custom namespace URIs to drop '/source' component 2019-01-31 12:34:05 +00:00
pool-rbd-refresh-volume-allocation.xml storage: optional 'refresh' elemement on pool 2019-03-19 16:46:21 +01:00
pool-rbd.xml tests: storagepoolxml2xmltest: Fix pool-rbd test 2016-03-28 12:02:31 -04:00
pool-scsi-type-fc-host-managed.xml storage: Introduce 'managed' for the fchost parent 2014-11-12 10:18:28 -05:00
pool-scsi-type-fc-host.xml New XML attributes for storage pool source adapter 2013-04-08 18:41:06 +08:00
pool-scsi-type-scsi-host-stable.xml storage: Introduce parentaddr into virStoragePoolSourceAdapter 2014-07-21 12:55:10 -04:00
pool-scsi-type-scsi-host.xml New XML attributes for storage pool source adapter 2013-04-08 18:41:06 +08:00
pool-scsi.xml tests: Add XML 2 XML tests for storage pools. 2009-10-16 10:21:47 -04:00
pool-sheepdog.xml storage: allow interleave in pool XML 2013-10-16 10:15:44 -06:00
pool-vstorage.xml storage: vstorage pool documentation and simple test 2017-01-26 10:43:42 -05:00
pool-zfs-sourcedev.xml storage: zfs: implement pool build and delete 2014-09-18 18:08:29 +04:00
pool-zfs.xml storage: zfs: implement pool build and delete 2014-09-18 18:08:29 +04:00