[dm-devel] [PATCH v3 10/10] libmultipath: avoid error messages from RDAC check

Martin Wilck mwilck at suse.com
Sun Jun 24 19:09:44 UTC 2018


VPD pages are only valid for SCSI devices, so we should disable
the RDAC detection for non-SCSI devices. Otherwise we'll get
an error about VPD inquiry failed.

Signed-off-by: Martin Wilck <mwilck at suse.com>
---
 libmultipath/propsel.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/libmultipath/propsel.c b/libmultipath/propsel.c
index f0847dba..af3ed622 100644
--- a/libmultipath/propsel.c
+++ b/libmultipath/propsel.c
@@ -466,6 +466,8 @@ check_rdac(struct path * pp)
 	int len;
 	char buff[44];
 
+	if (pp->bus != SYSFS_BUS_SCSI)
+		return 0;
 	len = get_vpd_sgio(pp->fd, 0xC9, buff, 44);
 	if (len <= 0)
 		return 0;
-- 
2.17.1




More information about the dm-devel mailing list