]> xenbits.xensource.com Git - libvirt.git/commit
Refactor iSCSI driver code to facilitate future changes
authorDaniel P. Berrange <berrange@redhat.com>
Tue, 2 Nov 2010 11:40:46 +0000 (11:40 +0000)
committerDaniel P. Berrange <berrange@redhat.com>
Tue, 23 Nov 2010 14:55:38 +0000 (14:55 +0000)
commit59446096ffad5049f66b0485fd2a5239a03dd58f
tree301305ba797ab67abe9903698281b9797358ab4c
parentb6e5a0a26e58615e0b895a5dde47bba72c9647ed
Refactor iSCSI driver code to facilitate future changes

The following series of patches are adding significant
extra functionality to the iSCSI driver. THe current
internal helper methods are not sufficiently flexible
to cope with these changes. This patch refactors the
code to avoid needing to have a virStoragePoolObjPtr
instance as a parameter, instead passing individual
target, portal and initiatoriqn parameters.

It also removes hardcoding of port 3260 in the portal
address, instead using the XML value if any.

* src/storage/storage_backend_iscsi.c: Refactor internal
  helper methods
src/storage/storage_backend_iscsi.c