util: Add one argument for several scsi utils

To support passing the path of the test data to the utils, one
more argument is added to virSCSIDeviceGetSgName,
virSCSIDeviceGetDevName, and virSCSIDeviceNew, and the related
code is changed accordingly.

Later tests for the scsi utils will be based on this patch.

Signed-off-by: Osier Yang <jyang@redhat.com>
This commit is contained in:
Osier Yang
2014-01-30 15:05:59 +08:00
parent fd243fc4ad
commit 10c9ceff6d
11 changed files with 54 additions and 29 deletions

View File

@@ -355,7 +355,8 @@ cleanup:
static char *
testSCSIDeviceGetSgName(const char *adapter ATTRIBUTE_UNUSED,
testSCSIDeviceGetSgName(const char *sysfs_prefix ATTRIBUTE_UNUSED,
const char *adapter ATTRIBUTE_UNUSED,
unsigned int bus ATTRIBUTE_UNUSED,
unsigned int target ATTRIBUTE_UNUSED,
unsigned int unit ATTRIBUTE_UNUSED)