diff options
author | David Gwynne <dlg@cvs.openbsd.org> | 2015-03-04 23:52:44 +0000 |
---|---|---|
committer | David Gwynne <dlg@cvs.openbsd.org> | 2015-03-04 23:52:44 +0000 |
commit | 768b4919561b11780edda9eae702b62113f7750a (patch) | |
tree | 8d06154a20690957bd2c66180b51de5190107a05 /sys/scsi | |
parent | 71df66cd7955a8ab311da900fb9764cf763c06ae (diff) |
prevent umass devices from being considered for paths.
ok deraadt@
Diffstat (limited to 'sys/scsi')
-rw-r--r-- | sys/scsi/mpath.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sys/scsi/mpath.c b/sys/scsi/mpath.c index 177758eccc4..ca2e9a9f1bf 100644 --- a/sys/scsi/mpath.c +++ b/sys/scsi/mpath.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mpath.c,v 1.37 2014/09/14 14:17:26 jsg Exp $ */ +/* $OpenBSD: mpath.c,v 1.38 2015/03/04 23:52:43 dlg Exp $ */ /* * Copyright (c) 2009 David Gwynne <dlg@openbsd.org> @@ -427,6 +427,9 @@ mpath_path_probe(struct scsi_link *link) if (link->id == NULL) return (EINVAL); + if (ISSET(link->flags, SDEV_UMASS)) + return (EINVAL); + if (mpath == link->adapter_softc) return (ENXIO); |