Re: How to figure out which block device has been created by tcm_loop?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 09/28/2015 04:19 PM, Sheng Yang wrote:
Thank you Nicholas.

But seems probably due to the TCMU I am using, I cannot get the VPD
page of the device. Is it the VPD page implemented per backstore, or
it should be there but I setup something wrong?

root@kernel-dev:~# sg_inq /dev/sda
standard INQUIRY:
   PQual=0  Device_type=0  RMB=0  version=0x05  [SPC-3]
   [AERC=0]  [TrmTsk=0]  NormACA=0  HiSUP=0  Resp_data_format=2
   SCCS=0  ACC=0  TPGS=0  3PC=0  Protect=0  [BQue=0]
   EncServ=0  MultiP=0  [MChngr=0]  [ACKREQQ=0]  Addr16=0
   [RelAdr=0]  WBus16=0  Sync=0  Linked=0  [TranDis=0]  CmdQue=1
     length=36 (0x24)   Peripheral device type: disk
  Vendor identification: LIO-ORG
  Product identification: TCMU device
  Product revision level: 0002
root@kernel-dev:~# sg_inq --vpd /dev/sda
VPD INQUIRY, page code=0x00:
    [PQual=0  Peripheral device type: disk]
    Supported VPD pages:
root@kernel-dev:~# sg_vpd -i /dev/sda
Device Identification VPD page:
invalid VPD response; probably a STANDARD INQUIRY response
fetching VPD page failed

Hi Sheng,

TCMUv2 passes all opcodes to tcmu-runner, and tcmu-runner doesn't yet implement vpd83, although it really should because it's mandatory in the spec.

I've opened this issue:

https://github.com/agrover/tcmu-runner/issues/7

and will work to resolve this as soon as possible.

Thanks -- Regards -- Andy

--
To unsubscribe from this list: send the line "unsubscribe target-devel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Kernel Newbies]     [Linux SCSI Target Infrastructure]     [Share Photos]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Device Mapper]

  Powered by Linux