Chinaunix首页 | 论坛 | 博客
  • 博客访问: 133306
  • 博文数量: 38
  • 博客积分: 1277
  • 博客等级: 中尉
  • 技术积分: 450
  • 用 户 组: 普通用户
  • 注册时间: 2009-10-11 23:24
文章分类

全部博文(38)

文章存档

2012年(2)

2011年(7)

2010年(24)

2009年(5)

分类: 服务器与存储

2009-12-14 01:18:36

    今天终于搞清了Tape的核心指令集了,仔细数数,也就那么多,所以根据iSCSI Target Disk去实现Tape的话应该很容易。可惜SSC中的指令集,Wireshark不识别呀。
 
The commands that the tape devices need to support tape drive self-identification are listed in the following table.
Table 1: Commands Needed to Support Tape Drive Self-Identification
 
 
Command
Page Code
Type (Mandatory/Optional)
Specified in...
INQUIRY (12h)
0
Mandatory
spc4r06, page 155
INQUIRY (12h)
0xB0
Optional
ssc3r03, page 147
Sequential-access device
capabilities VPD page
MODE SENSE (15h)
0x10
Mandatory
spc4r06, page 324
ssc3r03c, page 132
MODE SENSE (15h)
0x0F
Mandatory
ssc3r03c, page 128
READ BLOCK LIMITS (05h)
N/A
Mandatory
ssc3r03c, page 93
REPORT DENSITY SUPPORT (44h)
N/A
Mandatory
ssc3r03c, page 102
REPORT SUPPORTED OPERATION CODES (A3h)
N/A
Optional
spc4r06, page 229
spc4r06, page 234
 

INQUIRY
Standard inquiry data should include T10 VENDOR IDENTIFICATION and PRODUCT IDENTIFICATION. Page 0xB0 should include the WORM bit to report if the tape device supports WORM mode operation.

MODE SENSE
In the mode parameter header, MEDIUM TYPE should be reported. And in the Block descriptor, DENSITY CODE and NUMBER OF BLOCKS should be reported. If the tape devices support variable block size, NUMBER OF BLOCKS should be zero, or, if NUMBER OF BLOCKS is greater than 64512, then the tape device should support variable block size and NUMBER OF BLOCKS should be allowed to set to zero by MODE SELECT.

READ BLOCK LIMITS
The tape drive should report the maximum block length limit using this command.

REPORT DENSITY SUPPORT
PRIMARY DENSITY CODE
should be reported. If the tape device supports multiple density values, it should report multiple density support data descriptor blocks.

ASSIGNING ORGANIZATION
This value should be reported. It is used to determine the tape type. Tape drives with one of the following ASSIGNING ORGANIZATION values can be self-identified:

  • LTO-CVE
  • QUANTUM
  • SONY
  • STK

REPORT SUPPORTED OPERATION CODES
One_command parameter data format with Command timeouts descriptor should be reported. The commands for which a timeout value should be reported are:

  • ERASE
  • READ
  • WRITE
  • SPACE
  • LOAD
  • REWIND
  • INQUIRY
阅读(888) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~