Re: [Libvir] PATCH: 6/7 add virsh commands for storage management

2007-10-28 Thread Daniel P. Berrange
This adds a bunch of new virsh commands to expose all the capabilities of the storage APIs For dealing with storage pools: pool-autostart autostart a pool pool-create create a pool from an XML file pool-define define (but don't start) a pool from an XML file pool-destroy

Re: [Libvir] PATCH: 5/7 remote driver client implementation

2007-10-28 Thread Daniel P. Berrange
This provides the implementation of the remote driver client end. In the same way as the network APIs, all the storage API calls have to go to server, since the APIs have state to maintain. So things are setup such that no matter what hypervisor is being used, this remote driver will provide the

Re: [Libvir] PATCH: 3/7 internal driver API

2007-10-28 Thread Daniel P. Berrange
This patch defines the internal driver API for the storage API calls. It also provides the cache implementation for the virStoragePoolPtr and virStorageVolPtr objects. The virStorageVolPtr object is a little different in that it doesn't reference the virConnectPtr object directly. Instead it points

Re: [Libvir] PATCH: 2/7 public API header files

2007-10-28 Thread Daniel P. Berrange
This patch adds a public header file defining the application facing contract for the storage APIs. b/include/libvirt/storage.h | 215 +++ include/libvirt/libvirt.h|1 include/libvirt/libvirt.h.in |1 src/libvirt_sym.version | 39 +++

[Libvir] PATCH: 0/7 Implementation of storage APIs

2007-10-28 Thread Daniel P. Berrange
Since the previous discussions didn't really end up anywhere conclusive I decided it would be better to have a crack at getting some working code to illustrate my ideas. Thus, the following series of 7 patches provide an implementation of storage APIs which follow the scheme outlined in the pre