libvirt/src/storage
John Ferlan 08c0ea16fc conf: Return the vHBA name from virNodeDeviceCreateVport
Rather than returning true/false and having the caller check if the
vHBA was actually created, let's do that check within the CreateVport
function. That way the caller can faithfully assume success based
on a name start the thread looking for the LUNs. Prior to this change
it's possible that the vHBA wasn't really created (e.g if the call to
virVHBAGetHostByWWN returned NULL), we'd claim success, but in reality
there'd be no vHBA for the pool. This also fixes a second yet seen
issue that if the nodedev was present, but the parent by name wasn't
provided (perhaps parent by wwnn/wwpn or by fabric_name), then a failure
would be returned. For this path it shouldn't be an error - we should
just be happy that something else is managing the device and we don't
have to create/delete it.

The end result is that the createVport code can now just start the
refresh thread once it gets a non NULL name back.

Signed-off-by: John Ferlan <jferlan@redhat.com>
2017-03-15 21:17:47 -04:00
..
parthelper.c storage: Fix virStorageBackendDiskDeleteVol for device mapper 2016-05-11 09:23:31 -04:00
storage_backend_disk.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_disk.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_fs.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_fs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_gluster.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_gluster.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_iscsi.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_iscsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_logical.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_logical.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_mpath.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_backend_mpath.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_rbd.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_rbd.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_scsi.c conf: Return the vHBA name from virNodeDeviceCreateVport 2017-03-15 21:17:47 -04:00
storage_backend_scsi.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_sheepdog_priv.h storage: sheepdog: Split out functions required for tests 2017-01-19 09:25:51 +01:00
storage_backend_sheepdog.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_sheepdog.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_vstorage.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_zfs.c storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend_zfs.h storage: backend: Refactor registration of the backend drivers 2017-02-21 09:34:30 +01:00
storage_backend.c tests: drivermodule: Make sure that all compiled storage backends can be loaded 2017-02-22 09:31:33 +01:00
storage_backend.h tests: drivermodule: Make sure that all compiled storage backends can be loaded 2017-02-22 09:31:33 +01:00
storage_driver.c tests: drivermodule: Make sure that all compiled storage backends can be loaded 2017-02-22 09:31:33 +01:00
storage_driver.h tests: drivermodule: Make sure that all compiled storage backends can be loaded 2017-02-22 09:31:33 +01:00
storage_util.c util: Rename virFileWaitForDevices 2017-03-15 21:17:47 -04:00
storage_util.h storage: Fix build due to recent storage backend code movement 2017-01-26 11:43:30 -05:00