issue with umass plugged-in during boot up
Andriy Gapon
avg at icyb.net.ua
Thu Apr 24 07:50:24 UTC 2008
on 23/04/2008 00:16 Andriy Gapon said the following:
> After that camcontrol commands referring to "all" (rescan and reset)
> fail with EINVAL.
> ktrace shows that EINVAL comes from ioctl CAMIOCOMMAND on xpt0 device.
> My clumsy ddb debugging shows that the error is produced somewhere in
> xptioctl->xpt_find_bus.
>
> It seems that xpt might be unhappy about scbus0/pass0 going away.
> Maybe this is because in <all>/-1 case camcontrol sends ccb with path_id
> (implicitly) set to zero and xptioctl performs xpt_find_bus for all
> ioctl commands (including XPT_DEV_MATCH)?
> I.e. see case of bus=-1 in rescan_or_reset_bus() in camcontrol.c
I guess that the issue here is that XPT_DEV_MATCH block in xptioctl()
doesn't really need/use "bus" parameter, but xpt_find_bus is performed
nevertheless.
--
Andriy Gapon
More information about the freebsd-scsi
mailing list