[libvirt] [PATCH] esx: Make storage pool lookup by name and UUID more robust

Matthias Bolte matthias.bolte at googlemail.com
Mon Aug 2 21:32:37 UTC 2010


2010/8/2 Daniel Veillard <veillard at redhat.com>:
> On Mon, Aug 02, 2010 at 01:25:12AM +0200, Matthias Bolte wrote:
>> Don't rely on summary.url anymore, because its value is different
>> between an esx:// and vpx:// connection. Use host.mountInfo.path
>> instead.
>>
>> Don't fallback to lookup by UUID (actually lookup by absolute path)
>> in esxVI_LookupDatastoreByName when lookup by name fails. Add a
>> seperate function for this: esxVI_LookupDatastoreByAbsolutePath
>> ---
>>  src/esx/esx_driver.c           |    8 +-
>>  src/esx/esx_storage_driver.c   |  107 ++++++++++++++------------
>>  src/esx/esx_util.c             |   22 +++---
>>  src/esx/esx_util.h             |    5 +-
>>  src/esx/esx_vi.c               |  171 ++++++++++++++++++++--------------------
>>  src/esx/esx_vi.h               |    6 ++
>>  src/esx/esx_vi_generator.input |   13 +++
>>  src/esx/esx_vi_generator.py    |    3 +-
>>  src/esx/esx_vmx.c              |   65 +++++++--------
>>  src/esx/esx_vmx.h              |    3 +-
>>  tests/esxutilstest.c           |   14 ++--
>>  11 files changed, 221 insertions(+), 196 deletions(-)
>>
>
>  ACK,
>
> Daniel
>

Thanks, pushed.

Matthias




More information about the libvir-list mailing list