]> git.ipfire.org Git - thirdparty/libvirt.git/commit
nodedev: Fix sysfs paths for vport operations
authorDave Allan <dallan@redhat.com>
Tue, 17 Aug 2010 15:21:16 +0000 (17:21 +0200)
committerJiri Denemark <jdenemar@redhat.com>
Wed, 18 Aug 2010 15:32:31 +0000 (17:32 +0200)
commitb31ef773139147c939132b800a49270d2f682443
tree6be668cc04082e2bdb774e660b4df2ca81aaa510
parent8ebda7360995a432cb5346e03cff3c9da74c0421
nodedev: Fix sysfs paths for vport operations

Some kernels, such as the one used in RHEL-5, have vport_create and
vport_delete operation files in /sys/class/scsi_host/hostN directory
instead of /sys/class/fc_host/hostN. Let's check both paths for
compatibility reasons.

This also removes unnecessary '/' characters from sysfs paths containing
LINUX_SYSFS_FC_HOST_PREFIX.
src/node_device/node_device_driver.c
src/node_device/node_device_driver.h
src/node_device/node_device_linux_sysfs.c