[libvirt] [PATCH] conf: storage: also sanitize source dir

Peter Krempa pkrempa at redhat.com
Tue Jun 25 15:09:22 UTC 2019


On Tue, Jun 25, 2019 at 13:44:36 +0200, Ján Tomko wrote:
> 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 at redhat.com>
> ---

ACK
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 833 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20190625/7f6c5afb/attachment-0001.sig>


More information about the libvir-list mailing list