1、Information technology Small computer system interface-3 (SCSI-3) Part 321:Block commands (SBC)Reference numberISO/IEC 14776-321:2002(E)National Standard of CanadaCAN/CSA-ISO/IEC 14776-321:04(ISO/IEC 14776-321:2002)International Standard ISO/IEC 14776-321:2002 (first edition, 2002-08) has been adopt
2、ed without modification(IDT) as CSA Standard CAN/CSA-ISO/IEC 14776-321:04, which has been approved as a National Standard of Canadaby the Standards Council of Canada.ISBN 1-55397-360-7 January 2004The Canadian Standards Association (CSA), The Standards Council of Canada is theunder whose auspices th
3、is National Standard has been coordinating body of the National Standards system, produced, was chartered in 1919 and accredited by a federation of independent, autonomousthe Standards Council of Canada to the National organizations working towards the furtherStandards system in 1973. It is a not-fo
4、r-profit, development and improvement of voluntarynonstatutory, voluntary membership association standardization in the national interest.engaged in standards development and certification The principal objects of the Council are to foster activities. and promote voluntary standardization as a means
5、 CSA standards reflect a national consensus of of advancing the national economy, benefiting theproducers and users including manufacturers, health, safety, and welfare of the public, assisting consumers, retailers, unions and professional and protecting the consumer, facilitating domestic organizat
6、ions, and governmental agencies. The and international trade, and furthering internationalstandards are used widely by industry and commerce cooperation in the field of standards.and often adopted by municipal, provincial, and A National Standard of Canada is a standard whichfederal governments in t
7、heir regulations, particularly in has been approved by the Standards Council ofthe fields of health, safety, building and construction, Canada and one which reflects a reasonableand the environment. agreement among the views of a number of capableIndividuals, companies, and associations across indiv
8、iduals whose collective interests provide to theCanada indicate their support for CSAs standards greatest practicable extent a balance ofdevelopment by volunteering their time and skills to representation of producers, users, consumers, andCSA Committee work and supporting the Associations others wi
9、th relevant interests, as may be appropriateobjectives through sustaining memberships. The more to the subject in hand. It normally is a standardthan 7000 committee volunteers and the 2000 which is capable of making a significant and timelysustaining memberships together form CSAs total contribution
10、 to the national interest.membership from which its Directors are chosen. Approval of a standard as a National Standard ofSustaining memberships represent a major source of Canada indicates that a standard conforms to theincome for CSAs standards development activities. criteria and procedures estab
11、lished by the StandardsThe Association offers certification and testing Council of Canada. Approval does not refer to theservices in support of and as an extension to its technical content of the standard; this remains thestandards development activities. To ensure the continuing responsibility of t
12、he accreditedintegrity of its certification process, the Association standards-development organization.regularly and continually audits and inspects products Those who have a need to apply standards arethat bear the CSA Mark. encouraged to use National Standards of CanadaIn addition to its head off
13、ice and laboratory complex whenever practicable. These standards are subject in Toronto, CSA has regional branch offices in major to periodic review; therefore, users are cautioned centres across Canada and inspection and testing to obtain the latest edition from the organizationagencies in eight co
14、untries. Since 1919, the preparing the standard.Association has developed the necessary expertise to The responsibility for approving National Standards meet its corporate mission: CSA is an independent of Canada rests with theservice organization whose mission is to provide an Standards Council of
15、Canadaopen and effective forum for activities facilitating the 270 Albert Street, Suite 200exchange of goods and services through the use of Ottawa, Ontario, K1P 6N7standards, certification and related services to meet Canadanational and international needs.For further information on CSA services, w
16、rite toCanadian Standards Association5060 Spectrum Way, Suite 100Mississauga, Ontario, L4W 5N6CanadaAlthough the intended primary application of this Standard is stated in its Scope, it is importantto note that it remains the responsibility of the users to judge its suitability for their particular
17、purpose.Registered trade-mark of Canadian Standards AssociationCAN/CSA-ISO/IEC 14776-321:04 interface-3 (SCSI-3) Part 321: Block commands (SBC)Information technology Small computer systemJanuary 2004 Canadian Standards Association CSA/1CAN/CSA-ISO/IEC 14776-321:04Information technology Smallcomputer
18、 system interface-3 (SCSI-3) Part 321: Block commands (SBC)CSA PrefaceStandards development within the Information Technology sector is harmonized with internationalstandards development. Through the CSA Technical Committee on Information Technology (TCIT),Canadians serve as the Canadian Advisory Co
19、mmittee (CAC) on ISO/IEC Joint Technical Committee 1 onInformation Technology (ISO/IEC JTC1) for the Standards Council of Canada (SCC), the ISO memberbody for Canada and sponsor of the Canadian National Committee of the IEC. Also, as a member of theInternational Telecommunication Union (ITU), Canada
20、 participates in the International Telegraph andTelephone Consultative Committee (ITU-T).This International Standard was reviewed by the CSA TCIT under the jurisdiction of the StrategicSteering Committee on Information Technology and deemed acceptable for use in Canada. (Acommittee membership list i
21、s available on request from the CSA Project Manager.) From time to time,ISO/IEC may publish addenda, corrigenda, etc. The CSA TCIT will review these documents for approvaland publication. For a listing, refer to the CSA Information Products catalogue or CSA Info Update orcontact a CSA Sales represen
22、tative. This Standard has been formally approved, without modification, bythe Technical Committee and has been approved as a National Standard of Canada by the StandardsCouncil of Canada.January 2004 Canadian Standards Association 2004All rights reserved. No part of this publication may be reproduce
23、d in any form whatsoever without the prior permission ofthe publisher. ISO/IEC material is reprinted with permission. Where the words “this International Standard” appear in thetext, they should be interpreted as “this National Standard of Canada”. Inquiries regarding this National Standard of Canad
24、a should be addressed to Canadian Standards Association 5060 Spectrum Way, Suite 100, Mississauga, Ontario, Canada L4W 5N6 1-800-463-6727 416-747-4044www.csa.caINTERNATIONALSTANDARDISO/IEC14776-321First edition2002-08Information technology Small computer system interface-3 (SCSI-3) Part 321:Block co
25、mmands (SBC)PRICE CODE ISO/IEC 2002All rights reserved. Unless otherwise specified, no part of this publication may be reproduced or utilized in any form or by anymeans, electronic or mechanical, including photocopying and microfilm, without permission in writing from the publisher.ISO/IEC Copyright
26、 Office Case postale 56 CH-1211 Genve 20 SwitzerlandXBFor price, see current catalogue 2 14776-321 ISO/IEC:2002(E)CONTENTSFOREWORD 8INTRODUCTION 91 Scope .102 Normative references122.1 Normative reference overview 122.2 Approved references122.3 References under development123 Definitions, symbols an
27、d abbreviations 133.1 Definitions .133.1.1 Definitions specific to direct access devices .133.1.2 Definitions specific to optical memory block devices and to write-onceblock devices .153.2 Symbols and abbreviations.153.3 Keywords.163.4 Conventions.174 General.175 SCSI block device models.185.1 Direc
28、t-access device type model 185.1.0 General185.1.1 Removable medium .185.1.2 Logical blocks 195.1.3 Ready state195.1.4 Power conditions195.1.5 Initialization215.1.6 Medium defects225.1.7 Cache memory.225.1.8 Reservations235.1.9 Seek(10)255.1.10 Notched devices.255.1.11 Rotational position locking255.
29、1.12 Relative addressing255.1.13 Error reporting255.1.14 Examples.265.1.15 Model for XOR commands .275.2 Model for optical memory block devices .365.2.0 General365.2.1 Defect management .375.2.2 Error reporting375.3 Model for write-once block devices.385.3.0 General385.3.1 Logical blocks 385.3.2 Ini
30、tialization395.3.3 Physical medium defects395.3.4 Error reporting396 Commands for block devices.4014776-321 ISO/IEC:2002(E) 3 6.1 Commands for direct-access block devices overview406.1.1 Commands for direct-access block devices 406.1.2 FORMAT UNIT command.426.1.3 LOCK UNLOCK CACHE command .506.1.4 P
31、RE-FETCH command.516.1.5 READ(6) command 526.1.6 READ(10) command 536.1.7 READ CAPACITY command.546.1.8 READ DEFECT DATA(10) command556.1.9 READ LONG command 576.1.10 REASSIGN BLOCKS command586.1.11 REBUILD command .606.1.12 REGENERATE command.626.1.13 SEEK(10) command.636.1.14 SET LIMITS(10) comman
32、d .646.1.15 START STOP UNIT command656.1.16 SYNCHRONIZE CACHE command.676.1.17 VERIFY command686.1.18 WRITE(6) command.696.1.19 WRITE(10) command.706.1.20 WRITE AND VERIFY command706.1.21 WRITE LONG command 716.1.22 WRITE SAME command 726.1.23 XDREAD command736.1.24 XDWRITE command 746.1.25 XDWRITE
33、EXTENDED command.756.1.26 XPWRITE command 766.2 Commands for optical memory block devices .776.2.0 General776.2.1 ERASE(10) command 796.2.2 ERASE(12) command 806.2.3 MEDIUM SCAN command816.2.4 READ(12) command 836.2.5 READ DEFECT DATA(12) command846.2.6 READ GENERATION command .856.2.7 READ UPDATED
34、BLOCK(10) command.866.2.8 SET LIMITS(12) command .876.2.9 UPDATE BLOCK command886.2.10 VERIFY(10) command896.2.11 VERIFY(12) command906.2.12 WRITE(10) command.916.2.13 WRITE(12) command.916.2.14 WRITE AND VERIFY(10) command .926.2.15 WRITE AND VERIFY(12) command .936.3 Commands for write-once block
35、devices.947 Parameters for block devices 967.1 Parameters for direct-access block devices967.1.1 Diagnostic parameters .967.1.2 Log parameters101 4 14776-321 ISO/IEC:2002(E)7.1.3 Mode parameters .1037.1.4 Parameters for optical memory block devices .1297.1.5 Parameters for write-once block devices 1
36、32Annex A (informative) XOR command examples .133A.1 XOR annex overview.133A.2 Storage array controller supervised XOR operations133A.2.1 Update write operation .133A.2.2 Regenerate operation.134A.2.3 Rebuild operation.135A.3 Third-party XOR operations.136A.3.1 Update write operation .136A.3.2 Regen
37、erate operation.137A.3.3 Rebuild operation.138A.4 Hybrid subsystem XOR operations 139A.4.1 Regenerate operation.139A.4.2 Rebuild operation.140Bibliography 142Figure 1 SCSI standards General structure 11Figure 2 SCSI power conditions flow control (automatic switching) 20Figure 3 SCSI power conditions
38、 flow control (controlled switching) 21Figure 4 Power conditions flowchart119Figure A.1 Rebuild operation 134Figure A.2 Regenerate operation 135Figure A.3 Rebuild operation 136Figure A.4 Update write operation.137Figure A.5 Regenerate operation 138Figure A.6 Rebuild operation 139Figure A.7 Regenerat
39、e operation 140Figure A.8 Rebuild operation 14114776-321 ISO/IEC:2002(E) 5 Table 1 Sample error conditions .26Table 2 Sample error conditions .38Table 3 Sample error conditions .39Table 4 Commands for direct-access block devices 40Table 5 FORMAT UNIT command.42Table 6 FORMAT UNIT parameter list.43Ta
40、ble 7 DEFECT LIST HEADER44Table 8 FORMAT UNIT defect descriptor format and requirements .45Table 9 DEFECT DESCRIPTOR Block format.47Table 10 DEFECT DESCRIPTOR Bytes from index format47Table 11 DEFECT DESCRIPTOR Physical sector format 48Table 12 Initialization pattern descriptor48Table 13 Initializat
41、ion pattern modifier.49Table 14 Initialization pattern type.49Table 15 LOCK UNLOCK CACHE command .50Table 16 PRE-FETCH command.51Table 17 READ(6) command 52Table 18 READ(10) command 53Table 19 READ CAPACITY command.54Table 20 READ CAPACITY data .55Table 21 READ DEFECT DATA(10) command55Table 22 READ
42、 DEFECT DATA(10) defect list 56Table 23 READ LONG command 57Table 24 REASSIGN BLOCKS command58Table 25 REASSIGN BLOCKS defect list 59Table 26 REBUILD command .60Table 27 PORT CONTROL field.61Table 28 REBUILD and REGENERATE parameter data 61Table 29 SOURCE DESCRIPTOR format 62Table 30 REGENERATE comm
43、and.63Table 31 SEEK(10) command.64Table 32 SET LIMITS(10) command .64Table 33 START STOP UNIT command65Table 34 POWER CONDITIONS .66Table 35 SYNCHRONIZE CACHE command.67Table 36 VERIFY command68Table 37 WRITE(6) command.69Table 38 WRITE(10) command.70Table 39 WRITE AND VERIFY command71Table 40 WRITE
44、 LONG command 72Table 41 WRITE SAME command 73Table 42 XDREAD command74Table 43 XDWRITE command 74 6 14776-321 ISO/IEC:2002(E)Table 44 XDWRITE EXTENDED command.75Table 45 XPWRITE command 77Table 46 Commands for optical memory block devices .78Table 47 ERASE(10) command 80Table 48 ERASE(12) command 8
45、1Table 49 MEDIUM SCAN command 81Table 50 MEDIUM SCAN parameter list82Table 51 READ(12) command 84Table 52 READ DEFECT DATA(12) command84Table 53 READ DEFECT DATA(12) list header.85Table 54 READ GENERATION command .85Table 55 Maximum generation data block .86Table 56 READ UPDATED BLOCK(10) command .8
46、6Table 57 SET LIMITS(12) command .87Table 58 UPDATE BLOCK command88Table 59 VERIFY command89Table 60 VERIFY(12) command90Table 61 WRITE(10) command.91Table 62 WRITE(12) command.92Table 63 WRITE AND VERIFY(10) command .92Table 64 WRITE AND VERIFY(12) command .94Table 65 Commands for write-once block
47、devices.95Table 66 Diagnostic page codes .97Table 67 Translate address page SEND DIAGNOSTIC 97Table 68 Translate address page RECEIVE DIAGNOSTIC .98Table 69 Device status page SEND DIAGNOSTIC .99Table 70 Device status page RECEIVE DIAGNOSTIC100Table 71 SYNCHRONIZATION field 100Table 72 Log page code
48、s101Table 73 Format status log page.102Table 74 Direct-access medium-type codes 103Table 75 Device specific parameter 103Table 76 Mode page codes.104Table 77 Caching page.105Table 78 Demand read retention priority and write retention priority.106Table 79 Flexible disk page 109Table 80 Examples of tr
49、ansfer rates .110Table 81 PIN 34 field .111Table 82 PIN 4 field .112Table 83 PIN 1 field .112Table 84 Format device page113Table 85 Reporting of default sector formatting support 115Table 86 Reporting of changeable sector formatting support .11514776-321 ISO/IEC:2002(E) 7 Table 87 Medium types supported page115Table 88