Message ID | 1426509425-15978-73-git-send-email-hare@suse.de (mailing list archive) |
---|---|
State | Not Applicable, archived |
Delegated to: | christophe varoqui |
Headers | show |
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
VPD page 0x80 is optional, so we shouldn't return an error if the page is not present. Signed-off-by: Hannes Reinecke <hare@suse.de> --- libmultipath/discovery.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)