do I want ch0 or pass1?

Dan Nelson dnelson at allantgroup.com
Fri Jan 22 17:21:27 UTC 2010


In the last episode (Jan 21), Dan Langille said:
> Please CC me on replies.
> 
> I'm running into issues with hard-coding some devices (see recent post
> titled 'device.hints isn't setting what I want').
> 
> Associated with this issue is confusion over whether I want to use ch0
> or pass1.  I have these devices:
> 
> <DEC TL800    (C) DEC 0326>        at scbus1 target 0 lun 0 (ch0,pass1)
> <DEC TZ89     (C) DEC 1837>        at scbus1 target 5 lun 0 (sa1,pass2)
> 
> My understanding: chio(1) will with ch0, whereas mtx(1) will work with
> pass1.  Is this correct?  More information/elaboration will help I'm sure.
> 
> Why do I ask? I can get the tape changer and tape drive hardwired to ch0
> and sa1 respectively.  I cannot [yet] do the same with pass1.

You can try wiring them down the same way you wire down regular devices, but
if they're created sequentially in probe order, that won't work.

Ideally, mtx should use cam_open_spec_device() which, when given a device
name, will automatically open the matching pass device.

-- 
	Dan Nelson
	dnelson at allantgroup.com


More information about the freebsd-stable mailing list