This kept the reduced map from loading when multipathd runs and a path
is failed or offline.
Also fix get_claimed() false positive returns by checking errno == EBUSY
{
int fd = opennode(devname, O_EXCL);
- if (fd < 0)
+ if (fd <= 0 && errno == EBUSY)
return 1;
close(fd);
out:
/*
* Recoverable error, for example faulty or offline path
- * Force path state to "failed"
+ * Set up safe defaults, don't trust the cache
*/
+ memset(pp->wwid, 0, WWID_SIZE);
pp->state = PATH_DOWN;
return 0;
}