lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Message-Id: <1232092305.1274.171.camel@haakon2.linux-iscsi.org>
Date:	Thu, 15 Jan 2009 23:51:45 -0800
From:	"Nicholas A. Bellinger" <nab@...ux-iscsi.org>
To:	"Linux-iSCSI.org Target Dev" 
	<linux-iscsi-target-dev@...glegroups.com>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	linux-scsi <linux-scsi@...r.kernel.org>,
	Linux-fsdevel <linux-fsdevel@...r.kernel.org>,
	Joel Becker <joel.becker@...cle.com>,
	"H. Peter Anvin" <hpa@...or.com>, Andrew Morton <akpm@...l.org>,
	James Bottomley <James.Bottomley@...senPartnership.com>,
	Mike Christie <michaelc@...wisc.edu>,
	FUJITA Tomonori <fujita.tomonori@....ntt.co.jp>,
	Christoph Hellwig <hch@....de>
Subject: [PATCH 0/2] [Target_Core_Mod]: Add EVPD information to ConfigFS

Greetings all,

This patch adds T10/SCSI WWN / Extended Vital Production Desciptor pages
(EVPD) information into Target_Core_Mod/ConfigFS.  These ConfigFS
attributs are defined as READ-WRITE, but currently only implement
READ-ONLY and return -ENOSYS (this will be changing soon).

This patch adds the following INQUIRY EVPD=1 protocol information to
ConfigFS:

*) Protocol Identifier
*) Association
*) Identifier Type
*) Identifier Binary, ASCII, and UTF-8 encoding

This patch is made against lio-core-2.6.git/master
and tested on v2.6.28.  The lio-core-2.6.git tree can be found at:

http://git.kernel.org/?p=linux/kernel/git/nab/lio-core-2.6.git;a=summary

Here is what the layout looks like with some Parallel SCSI (pscsi_1/sdb)
and Serial SCSI (pscsi_2/sdc and pscsi_2/sdd):

/sys/kernel/config
`-- target
    |-- core
    |   |-- pscsi_1
    |   |   |-- hba_info
    |   |   `-- sdb
    |   |       |-- attrib
    |   |       |   |-- hw_max_sectors
    |   |       |   |-- hw_queue_depth
    |   |       |   |-- max_sectors
    |   |       |   |-- queue_depth
    |   |       |   |-- status_thread
    |   |       |   |-- status_thread_tur
    |   |       |   `-- task_timeout
    |   |       |-- control
    |   |       |-- enable
    |   |       |-- fd
    |   |       |-- info
    |   |       `-- wwn
    |   |           |-- evpd_assoc_logical_unit
    |   |           |-- evpd_assoc_scsi_target_device
    |   |           |-- evpd_assoc_target_port
    |   |           |-- evpd_protocol_identifier
    |   |           `-- evpd_unit_serial
    |   |-- pscsi_2
    |   |   |-- hba_info
    |   |   |-- sdc
    |   |   |   |-- attrib
    |   |   |   |   |-- hw_max_sectors
    |   |   |   |   |-- hw_queue_depth
    |   |   |   |   |-- max_sectors
    |   |   |   |   |-- queue_depth
    |   |   |   |   |-- status_thread
    |   |   |   |   |-- status_thread_tur
    |   |   |   |   `-- task_timeout
    |   |   |   |-- control
    |   |   |   |-- enable
    |   |   |   |-- fd
    |   |   |   |-- info
    |   |   |   `-- wwn
    |   |   |       |-- evpd_assoc_logical_unit
    |   |   |       |-- evpd_assoc_scsi_target_device
    |   |   |       |-- evpd_assoc_target_port
    |   |   |       |-- evpd_protocol_identifier
    |   |   |       `-- evpd_unit_serial
    |   |   `-- sdd
    |   |       |-- attrib
    |   |       |   |-- hw_max_sectors
    |   |       |   |-- hw_queue_depth
    |   |       |   |-- max_sectors
    |   |       |   |-- queue_depth
    |   |       |   |-- status_thread
    |   |       |   |-- status_thread_tur
    |   |       |   `-- task_timeout
    |   |       |-- control
    |   |       |-- enable
    |   |       |-- fd
    |   |       |-- info
    |   |       `-- wwn
    |   |           |-- evpd_assoc_logical_unit
    |   |           |-- evpd_assoc_scsi_target_device
    |   |           |-- evpd_assoc_target_port
    |   |           |-- evpd_protocol_identifier
    |   |           `-- evpd_unit_serial

<SNIP>

>>From the Parallel SCSI device at pscsi_1/sdb:

target-core:/sys/kernel/config/target/core/pscsi_1/sdb/wwn# cat *
T10 EVPD Identifier Association: addressed logical unit
T10 EVPD Identifier Type: EUI-64 based
T10 EVPD Binary Device Identifier: 20010b9fe9f4b0200
T10 EVPD Identifier Association: addressed logical unit
T10 EVPD Identifier Type: T10 Vendor ID based
T10 EVPD ASCII Device Identifier: MAXTOR  C40464HK    
T10 EVPD Unit Serial Number:: C40464HK.

>>From the Serial SCSI device at pscsi_2/sdd:

target-core:/sys/kernel/config/target/core/pscsi_2/sdd/wwn# cat *
T10 EVPD Identifier Association: addressed logical unit
T10 EVPD Identifier Type: NAA
T10 EVPD Binary Device Identifier: 350010b90000292df
T10 EVPD Identifier Association: SCSI target device
T10 EVPD Identifier Type: SCSI name string
T10 EVPD UTF-8 Device Identifier: naa.50010B90000292DC
T10 EVPD Identifier Association: target port
T10 EVPD Identifier Type: NAA
T10 EVPD Binary Device Identifier: 350010b90000292de
T10 EVPD Identifier Association: target port
T10 EVPD Identifier Type: Relative target port identifier
T10 EVPD Binary Device Identifier: 400000002
T10 EVPD Protocol Identifier: SAS Serial SCSI Protocol
T10 EVPD Protocol Identifier: SAS Serial SCSI Protocol
T10 EVPD Unit Serial Number:: E20HY72K

Comments..?

--nab

[PATCH 1/2] [Target_Core_Mod]: Move 10_wwn_t to se_subsystem_dev_t->t10_wwn
[PATCH 2/2] [Target_Core_Mod/ConfigFS]: Add T10 EVPD / WWN storage object attributes

 drivers/lio-core/target_core_base.h      |    6 +-
 drivers/lio-core/target_core_configfs.c  |  212 +++++++++++++++++++++++++++++-
 drivers/lio-core/target_core_device.c    |    8 +-
 drivers/lio-core/target_core_mib.c       |   30 ++--
 drivers/lio-core/target_core_seobj.c     |    2 +-
 drivers/lio-core/target_core_transport.c |   19 ++-
 drivers/lio-core/target_core_transport.h |    4 +
 7 files changed, 251 insertions(+), 30 deletions(-)




--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ