]> git.ipfire.org Git - thirdparty/libvirt.git/commit
storage: Fetch a unique key for vHBA/NPIV LUNs
authorJohn Ferlan <jferlan@redhat.com>
Fri, 18 Jan 2019 13:33:10 +0000 (08:33 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Fri, 1 Feb 2019 15:39:19 +0000 (10:39 -0500)
commit850cfd75beb7872b20439eccda0bcf7b68cab525
treeb9bd5a4535c68c04b436728e31ceaa656e607e29
parent5f9e211c9319311fc296cb91ca8e330917ac9494
storage: Fetch a unique key for vHBA/NPIV LUNs

https://bugzilla.redhat.com/show_bug.cgi?id=1657468

Commit be1bb6c95 changed the way volumes were stored from a forward
linked list to a hash table. In doing so, it required that each vol
object would have 3 unique values as keys into tables - key, name,
and path. Due to how vHBA/NPIV LUNs are created/used this resulted
in a failure to utilize all the LUN's found during processing.

During virStorageBackendSCSINewLun processing fetch the key (or
serial value) for NPIV LUN's using virStorageFileGetNPIVKey which
will formulate a more unique key based on the serial value and
the port for the LUN.

Signed-off-by: John Ferlan <jferlan@redhat.com>
ACKed-by: Michal Privoznik <mprivozn@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_util.c