CVSROOT:        /cvs
Module name:    src
Changes by:     d...@cvs.openbsd.org    2011/04/17 17:18:01

Modified files:
        sys/scsi       : mpath.c 

Log message:
if mpath is disabled in config or ukc, then prevent path drivers from
attaching since theyre useless without mpath.

the path drivers ask mpath if its ok to use the device before doing their
own matches (this is so mpath can prevent paths attaching to itself), so
im just adding this check there.

this uses code from miod to walk cfdata for the mpath entry and then checks
its state. this is ok because mpath is only attached in one place, so there
arent multiple cfdata entries for it.

ok krw@ deraadt@ miod@ matthew@

Reply via email to