]> xenbits.xensource.com Git - libvirt.git/commit
virutil: Introduce virReadSCSIUniqueId
authorJohn Ferlan <jferlan@redhat.com>
Tue, 10 Jun 2014 15:09:20 +0000 (11:09 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Mon, 21 Jul 2014 16:55:11 +0000 (12:55 -0400)
commitfbd91d496e32f1294aa2940a8467db935d3cb68d
treee0336114dfb7297471ea7ce7b28f95f77c306205
parentaa9dac09b3efd3bed936c1a8c3a634d46cfe3739
virutil: Introduce virReadSCSIUniqueId

Introduce a new function to read the current scsi_host entry and return
the value found in the 'unique_id' file.

Add a 'scsihosttest' test (similar to the fchosttest, but incorporating some
of the concepts of the mocked pci test library) in order to read the
unique_id file like would be found in the /sys/class/scsi_host tree.
src/libvirt_private.syms
src/util/virutil.c
src/util/virutil.h
tests/Makefile.am
tests/scsihosttest.c [new file with mode: 0644]