mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-01-22 20:45:18 +00:00
virutil: fix trailing '/' for path prefixes
The path prefixes for sysfs trees are always prepended by paths beginning with a slash, making the trailing slash in the prefix redundant. Signed-off-by: Bjoern Walk <bwalk@linux.vnet.ibm.com> Reviewed-by: Marc Hartmayer <mhartmay@linux.vnet.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.vnet.ibm.com>
This commit is contained in:
parent
7ab1fd91a4
commit
fdb060f0b5
@ -1777,8 +1777,8 @@ virGetDeviceUnprivSGIO(const char *path,
|
|||||||
}
|
}
|
||||||
|
|
||||||
#ifdef __linux__
|
#ifdef __linux__
|
||||||
# define SYSFS_FC_HOST_PATH "/sys/class/fc_host/"
|
# define SYSFS_FC_HOST_PATH "/sys/class/fc_host"
|
||||||
# define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host/"
|
# define SYSFS_SCSI_HOST_PATH "/sys/class/scsi_host"
|
||||||
|
|
||||||
/* virReadSCSIUniqueId:
|
/* virReadSCSIUniqueId:
|
||||||
* @sysfs_prefix: "scsi_host" sysfs path, defaults to SYSFS_SCSI_HOST_PATH
|
* @sysfs_prefix: "scsi_host" sysfs path, defaults to SYSFS_SCSI_HOST_PATH
|
||||||
|
Loading…
x
Reference in New Issue
Block a user