Refactor iSCSI driver code to facilitate future changes
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

iam-TJ/libvirt,rlaager/libvirt,emaste/libvirt,bjzhang/libvirt,novel/fbsd-libvirt,kantai/libvirt-vfork,rlaager/libvirt,rmarwaha/libvirt1,jeckersb/libvirt,shugaoye/libvirt,jardasgit/libvirt,trainstack/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,fabianfreyer/libvirt,olafhering/libvirt,jfehlig/libvirt,elmarco/libvirt,jardasgit/libvirt,fabianfreyer/libvirt,siboulet/libvirt-openvz,taget/libvirt,trainstack/libvirt,warewolf/libvirt,rmarwaha/libvirt1,crobinso/libvirt,novel/fbsd-libvirt,andreabolognani/libvirt,trainstack/libvirt,leilihh/libvirt,kantai/libvirt-vfork,zippy2/libvirt,taget/libvirt,dumbbell/libvirt,agx/libvirt,andreabolognani/libvirt,foomango/libvirt,zhlcindy/libvirt-1.1.4-maintain,jeckersb/libvirt,libvirt/libvirt,andreabolognani/libvirt,zippy2/libvirt,bjzhang/libvirt,fabianfreyer/libvirt,emaste/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt1,foomango/libvirt,emaste/libvirt,usc-isi/libvirt,soulxu/libvirt-xuhj,wiedi/libvirt,emaste/libvirt,warewolf/libvirt,dumbbell/libvirt,elmarco/libvirt,jeckersb/libvirt,rmarwaha/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,leilihh/libvirt,jfehlig/libvirt,jeckersb/libvirt,soulxu/libvirt-xuhj,soulxu/libvirt-xuhj,nertpinx/libvirt,kantai/libvirt-vfork,libvirt/libvirt,bjzhang/libvirt,datto/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,andreabolognani/libvirt,foomango/libvirt,wiedi/libvirt,novel/fbsd-libvirt,kantai/libvirt-vfork,siboulet/libvirt-openvz,elmarco/libvirt,rlaager/libvirt,jardasgit/libvirt,jardasgit/libvirt,rmarwaha/libvirt1,jfehlig/libvirt,wiedi/libvirt,VenkatDatta/libvirt,datto/libvirt,cbosdo/libvirt,warewolf/libvirt,foomango/libvirt,eskultety/libvirt,warewolf/libvirt,iam-TJ/libvirt,usc-isi/libvirt,cbosdo/libvirt,iam-TJ/libvirt,shugaoye/libvirt,nertpinx/libvirt,zhlcindy/libvirt-1.1.4-maintain,novel/fbsd-libvirt,emaste/libvirt,bjzhang/libvirt,danwent/libvirt-ovs,rmarwaha/libvirt,usc-isi/libvirt,rmarwaha/libvirt,wiedi/libvirt,rbu/libvirt,eskultety/libvirt,rlaager/libvirt,cbosdo/libvirt,zhlcindy/libvirt-1.1.4-maintain,sshah-solarflare/Libvirt-PCI-passthrough-,olafhering/libvirt,trainstack/libvirt,crobinso/libvirt,leilihh/libvirt,crobinso/libvirt,warewolf/libvirt,eskultety/libvirt,warewolf/libvirt,dumbbell/libvirt,emaste/libvirt,dumbbell/libvirt,rmarwaha/libvirt1,agx/libvirt,andreabolognani/libvirt,leilihh/libvirt,zhlcindy/libvirt-1.1.4-maintain,leilihh/libvirt,novel/fbsd-libvirt,eskultety/libvirt,sshah-solarflare/Libvirt-PCI-passthrough-,soulxu/libvirt-xuhj,agx/libvirt,bjzhang/libvirt,wiedi/libvirt,cbosdo/libvirt,taget/libvirt,usc-isi/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,trainstack/libvirt,iam-TJ/libvirt,jeckersb/libvirt,rbu/libvirt,nertpinx/libvirt,libvirt/libvirt,rbu/libvirt,jardasgit/libvirt,siboulet/libvirt-openvz,jeckersb/libvirt,datto/libvirt,novel/fbsd-libvirt,nertpinx/libvirt,novel/fbsd-libvirt,fabianfreyer/libvirt,rbu/libvirt,soulxu/libvirt-xuhj,rmarwaha/libvirt1,jfehlig/libvirt,iam-TJ/libvirt,agx/libvirt,taget/libvirt,zippy2/libvirt,shugaoye/libvirt,elmarco/libvirt,rmarwaha/libvirt,iam-TJ/libvirt,olafhering/libvirt,shugaoye/libvirt,fabianfreyer/libvirt,usc-isi/libvirt,eskultety/libvirt,rmarwaha/libvirt,VenkatDatta/libvirt,leilihh/libvirt,datto/libvirt,kantai/libvirt-vfork,shugaoye/libvirt,VenkatDatta/libvirt,crobinso/libvirt,VenkatDatta/libvirt,siboulet/libvirt-openvz,libvirt/libvirt,emaste/libvirt,zippy2/libvirt,danwent/libvirt-ovs,novel/fbsd-libvirt,datto/libvirt,rbu/libvirt,elmarco/libvirt,iam-TJ/libvirt,wiedi/libvirt,trainstack/libvirt,agx/libvirt,VenkatDatta/libvirt,rlaager/libvirt,wiedi/libvirt,zhlcindy/libvirt-1.1.4-maintain,trainstack/libvirt,nertpinx/libvirt,rmarwaha/libvirt,foomango/libvirt,danwent/libvirt-ovs,dumbbell/libvirt,taget/libvirt,novel/fbsd-libvirt,cbosdo/libvirt,olafhering/libvirt,warewolf/libvirt,danwent/libvirt-ovs,dumbbell/libvirt