libvirt/src/remote
Ata E Husain Bohra 2b121dbc10 Add private data pointer to virStoragePool and virStorageVol
This will simplify the refactoring of the ESX storage driver to support
a VMFS and an iSCSI backend.

One of the tasks the storage driver needs to do is to decide which backend
driver needs to be invoked for a given request. This approach extends
virStoragePool and virStorageVol to store extra parameters:

1. privateData: stores pointer to respective backend storage driver.
2. privateDataFreeFunc: stores cleanup function pointer.

virGetStoragePool and virGetStorageVol are modfied to accept these extra
parameters as user params. virStoragePoolDispose and virStorageVolDispose
checks for cleanup operation if available.

The private data pointer allows the ESX storage driver to store a pointer
to the used backend with each storage pool and volume. This avoids the need
to detect the correct backend in each storage driver function call.
2012-11-26 14:39:39 +01:00
..
qemu_protocol.x maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
remote_driver.c Add private data pointer to virStoragePool and virStorageVol 2012-11-26 14:39:39 +01:00
remote_driver.h maint: fix up copyright notice inconsistencies 2012-09-20 16:30:55 -06:00
remote_protocol.x cpumap: optimize for clients that don't need online count 2012-11-01 20:36:01 -06:00