@@ -377,10 +377,16 @@
/*
* see if path is in sysfs
*/
- if (!pp->dev || sysfs_get_dev(sysfs_path,
- pp->dev, pp->dev_t, BLK_DEV_SIZE)) {
- condlog(0, "%s: failed to access path %s", mpp->alias,
- pp->dev ? pp->dev : pp->dev_t);
+ if (!(*pp->dev) ||
+ sysfs_get_dev(sysfs_path, pp->dev, pp->dev_t,
+ BLK_DEV_SIZE)) {
+ if (!(*pp->dev))
+ condlog(3,
+ "%s: removing path %s with no devname",
+ mpp->alias, pp->dev_t);
+ else
+ condlog(0, "%s: failed to access path %s",
+ mpp->alias, pp->dev);
count++;
vector_del_slot(mpp->paths, i);
i--;
@@ -411,6 +411,7 @@
return 1; /* leave path added to pathvec */
verify_paths(mpp, vecs, NULL);
+ mpp->hwe = pp->hwe;
mpp->flush_on_last_del = FLUSH_UNDEF;
mpp->action = ACT_RELOAD;
}