免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2740 | 回复: 0
打印 上一主题 下一主题

[VTL与磁带系统] VTL的核心实现 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-12-14 01:18 |只看该作者 |倒序浏览
    今天终于搞清了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



本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u3/104665/showart_2120258.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP