[PATCH] extras multipath update
incremental to 0.0.12-1, * check hotplug event refers to a block device; if not exit early
This commit is contained in:
parent
9107fb88ba
commit
b02d14d0a6
|
@ -1,4 +1,5 @@
|
||||||
2003-12-29 multipath-012
|
2003-12-29 multipath-012
|
||||||
|
* check hotplug event refers to a block device; if not exit early
|
||||||
* refresh doc
|
* refresh doc
|
||||||
* add the uninstall target in Makefile
|
* add the uninstall target in Makefile
|
||||||
2003-12-22 multipath-010
|
2003-12-22 multipath-010
|
||||||
|
|
|
@ -261,7 +261,11 @@ get_all_paths_sysfs(struct env * conf, struct path * all_paths)
|
||||||
sprintf(buff, "%s%s/block",
|
sprintf(buff, "%s%s/block",
|
||||||
conf->sysfs_path, conf->hotplugdev);
|
conf->sysfs_path, conf->hotplugdev);
|
||||||
memset(conf->hotplugdev, 0, FILE_NAME_SIZE);
|
memset(conf->hotplugdev, 0, FILE_NAME_SIZE);
|
||||||
readlink(buff, conf->hotplugdev, FILE_NAME_SIZE);
|
|
||||||
|
/* if called from hotplug but with no block, leave */
|
||||||
|
if (0 > readlink(buff, conf->hotplugdev, FILE_NAME_SIZE))
|
||||||
|
return 0;
|
||||||
|
|
||||||
basename(conf->hotplugdev, buff);
|
basename(conf->hotplugdev, buff);
|
||||||
sprintf(curpath.sg_dev, "/dev/%s", buff);
|
sprintf(curpath.sg_dev, "/dev/%s", buff);
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
. /etc/hotplug/hotplug.functions
|
. /etc/hotplug/hotplug.functions
|
||||||
|
|
||||||
|
# wait for sysfs
|
||||||
sleep 1
|
sleep 1
|
||||||
|
|
||||||
mesg `/sbin/multipath scsi $DEVPATH`
|
mesg `/sbin/multipath scsi $DEVPATH`
|
||||||
|
|
Loading…
Reference in New Issue