Re: [PATCH] esx: Fix a bug in the XML code for storage pools

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 07/16/2014 03:50 PM, Geoff Hickey wrote:
> For ESX, the code that builds XML descriptions for attached storage pools was
> not setting the host count to anything when it returned a host name.
> ---
>  src/esx/esx_storage_backend_vmfs.c | 1 +
>  1 file changed, 1 insertion(+)

ACK; will push shortly.

> 
> diff --git a/src/esx/esx_storage_backend_vmfs.c b/src/esx/esx_storage_backend_vmfs.c
> index 6bed3ce..cf0da84 100644
> --- a/src/esx/esx_storage_backend_vmfs.c
> +++ b/src/esx/esx_storage_backend_vmfs.c
> @@ -488,6 +488,7 @@ esxStoragePoolGetXMLDesc(virStoragePoolPtr pool, unsigned int flags)
>          if (VIR_ALLOC_N(def.source.hosts, 1) < 0)
>              goto cleanup;
>          def.type = VIR_STORAGE_POOL_NETFS;
> +        def.source.nhost = 1;
>          def.source.hosts[0].name = nasInfo->nas->remoteHost;
>          def.source.dir = nasInfo->nas->remotePath;
>  
> 

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

Attachment: signature.asc
Description: OpenPGP digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]