VPD page 0x80 is optional, so we shouldn't return an error if the page is not present. Signed-off-by: Hannes Reinecke <hare@xxxxxxx> --- libmultipath/discovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libmultipath/discovery.c b/libmultipath/discovery.c index d1a16e6..4582a20 100644 --- a/libmultipath/discovery.c +++ b/libmultipath/discovery.c @@ -1370,13 +1370,13 @@ scsi_ioctl_pathinfo (struct path * pp, int mask) parent = udev_device_get_parent(parent); } if (!attr_path || pp->sg_id.host_no == -1) - return -ENODEV; + return 0; if (get_vpd_sysfs(parent, 0x80, pp->serial, SERIAL_SIZE) > 0) condlog(3, "%s: serial = %s", pp->dev, pp->serial); - return strlen(pp->serial) ? 0 : -EIO; + return 0; } static int -- 1.8.4.5 -- dm-devel mailing list dm-devel@xxxxxxxxxx https://www.redhat.com/mailman/listinfo/dm-devel