Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 11 Aug 2016 07:47:30 +0000
From:      Hongjiang Zhang <honzhan@microsoft.com>
To:        "freebsd-scsi@freebsd.org" <freebsd-scsi@freebsd.org>
Subject:   How to ask XPT/CAM to ignore invalid LUN devices
Message-ID:  <SN2PR03MB222414B20DF47AD33A6E4BB1B51E0@SN2PR03MB2224.namprd03.prod.outlook.com>

next in thread | raw e-mail | index | archive | help

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@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?SN2PR03MB222414B20DF47AD33A6E4BB1B51E0>