How to ask XPT/CAM to ignore invalid LUN devices

Hongjiang Zhang honzhan at microsoft.com
Thu Aug 11 07:47:39 UTC 2016


Hi all,

I'm developing the SCSI storage driver for FreeBSD on Hyper-V.

During lun scan, if the specified lun does not have a device, the Hyper-V host responses the FreeBSD VM with INQURY data: "0x3f 0x0 0x5 0x2 0x0 ...".

The "0x3f" has already indicates FreeBSD VM that the device on this lun is offline, but why there are so many /dev/passXX were created?

root at hz_BSD11:/usr/home/honzhan/clovetrail_freebsd # camcontrol devlist
<Msft Virtual CD/ROM 1.0>          at scbus0 target 0 lun 0 (cd0,pass0)
<Msft Virtual Disk 1.0>            at scbus1 target 0 lun 0 (pass1,da0)
<  >                               at scbus1 target 1 lun 1 (pass2)
<Msft Virtual Disk 1.0>            at scbus2 target 0 lun 0 (pass131,da1)
<  >                               at scbus2 target 0 lun 1 (pass3)
<  >                               at scbus2 target 0 lun 2 (pass5)
<  >                               at scbus2 target 0 lun 3 (pass7)
<  >                               at scbus2 target 0 lun 4 (pass9)
<  >                               at scbus2 target 0 lun 5 (pass11)
<  >                               at scbus2 target 0 lun 6 (pass13)
<  >                               at scbus2 target 0 lun 7 (pass15)
<  >                               at scbus2 target 0 lun 8 (pass17)
<Msft Virtual Disk 1.0>            at scbus2 target 0 lun 9 (pass19)
<  >                               at scbus2 target 0 lun a (pass21)
<  >                               at scbus2 target 0 lun b (pass23)
<  >                               at scbus2 target 0 lun c (pass25)
<  >                               at scbus2 target 0 lun d (pass27)
......

Thanks
Hongjiang Zhang


More information about the freebsd-scsi mailing list