[libvirt] [PATCHv2 4/7] storage: Avoid mangling paths of non-local filesystems when looking up

Eric Blake eblake at redhat.com
Wed Mar 5 04:46:09 UTC 2014


On 03/03/2014 09:05 AM, Peter Krempa wrote:
> When looking up a volume by path on a non-local filesystem don't use the
> "cleaned" path that might be mangled in such a way that it will differ
> from a path provided by a storage backend.
> 
> Skip the cleanup step for gluster, sheepdog and RBD.
> ---
>  src/storage/storage_driver.c | 82 ++++++++++++++++++++++++++++----------------
>  1 file changed, 53 insertions(+), 29 deletions(-)
> 

> +            case VIR_STORAGE_POOL_MPATH:
> +               stable_path = virStorageBackendStablePath(pool,
> +                                                          cleanpath,
> +                                                          false);

Indentation is off.

ACK with that fixed.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 604 bytes
Desc: OpenPGP digital signature
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20140304/d6964f84/attachment-0001.sig>


More information about the libvir-list mailing list