home *** CD-ROM | disk | FTP | other *** search
/ Club Amiga de Montreal - CAM / CAM_CD_1.iso / files / 571.lha / SCSI_II_Documentation / SCSI2.LZH / SCSIDOC.009 < prev    next >
Text File  |  1991-08-11  |  154KB  |  3,600 lines

  1.  
  2.  
  3.  
  4.  
  5.  
  6.  
  7. Sequential-Access Devices                                               3/9/90
  8.  
  9. 9. Sequential-Access Devices
  10.  
  11.  
  12. 9.1. Sequential-Access Device Model
  13.  
  14.  
  15. 9.1.1. Physical Elements
  16.  
  17. Sequential-access devices (called devices below) optimize their use in storing
  18. or retrieving user data in a sequential manner.  Since access is sequential,
  19. position changes typically take a long time, when compared to direct-access
  20. devices.
  21.  
  22. Sequential-access devices are usually tape devices.  The remainder of this
  23. description is from the point of view of a tape device; however, other
  24. implementations are not precluded.
  25.  
  26. The recording medium for tape devices consists of various widths and lengths
  27. of a flexible substrate coated with a semi-permanent magnetic material.  The
  28. recording medium may be wound onto single reels or encapsulated into
  29. cartridges containing both a supply reel and a take-up reel.  Several American
  30. National Standards exist covering the construction of reels and cartridges for
  31. interchange as well as recording techniques for many of the format or density
  32. combinations.
  33.  
  34. A complete unit composed of the recording medium and its physical carrier
  35. (e.g., reel, cartridge, cassette) is called a volume.  Volumes have an
  36. attribute of being mounted or demounted on a suitable transport mechanism.
  37.  
  38. Mounted is the state of a volume when the device is physically capable of
  39. executing commands that cause the the medium to be moved.  A volume is
  40. demounted when it is being loaded, threaded, unloaded, unthreaded, or when not
  41. attached to the device.
  42.  
  43. Ready is the state of the device when medium access and non-medium access
  44. commands can be executed.  The device is not ready when no volume is mounted
  45. or, from the initiator's perspective, whenever all medium access commands
  46. report CHECK CONDITION status and a NOT READY sense key.  Some devices may
  47. have a separate switch function which places the device in a not ready state
  48. even when a volume is mounted.
  49.  
  50. The write enabled or write protected state determines when an initiator may
  51. write information on a volume.  This attribute is usually controlled by the
  52. user of the volume through manual intervention (e.g., thumbwheel switch).
  53.  
  54. The recording medium has two physical attributes called beginning-of-medium
  55.  
  56.  
  57.  
  58.  
  59.  
  60. SCSI-2 draft proposed American National Standard        9-1      Revision 10c1
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68. Sequential-Access Devices                                               3/9/90
  69.  
  70. (BOM) and end-of-medium (EOM).  Beginning-of-medium is at the end of the
  71. medium that is attached to the take-up reel.  End-of-medium is at the end of
  72. the medium that is attached to the supply reel.  In some cases, the medium is
  73. permanently affixed to one or both of the reel hubs.
  74.  
  75. As shown in Figure 9-1, the entire physical length of medium is not usable for
  76. recording data. For most volumes, a length of the medium is reserved before
  77. the beginning-of-medium and after the end-of-medium position. This is done to
  78. provide sufficient tape wraps onto the reel hub(s) and to ensure that
  79. recording starts in an undamaged section of the medium.
  80.  
  81.        BOM                                                          EOM
  82. ==============================================================================
  83.           ----------------------------------------------------------
  84.  Reserved ----------Usable------------------------------------------ Reserved
  85.   Medium  --------------------------Recording-----------------------  Medium
  86.    Area   --------------------------------------------Zone----------   Area
  87.           ----------------------------------------------------------
  88. ==============================================================================
  89. <--- Take-up Hub                                               Supply Hub --->
  90.  
  91.                       Figure 9-1: Typical Volume Layout
  92.  
  93.  
  94. 9.1.2. Data Storage Characteristics
  95.  
  96. The position on the medium where a pattern of recorded signal may be written
  97. by one write component is called a track (Figure 9-2).  A device may write or
  98. read from one or more tracks at a time, depending on the format.
  99.  
  100.        BOM                                                          EOM
  101. ==============================================================================
  102. Track 1   ----------------------------------------------------------
  103. Track 2   ----------------------------------------------------------
  104.   :::     ----------------------------------------------------------
  105. Track n-1 ----------------------------------------------------------
  106. Track n   ----------------------------------------------------------
  107. ==============================================================================
  108.  
  109.                    Figure 9-2: Typical Medium Track Layout
  110.  
  111.  
  112. On a new volume, recording of one or more tracks begins after mounting the
  113. volume and moving from beginning-of-medium toward end-of-medium. The number of
  114. tracks written at one time is called a track group (TrkGrp).  For recorded
  115. volumes, reading in the forward direction follows the same course of tracks as
  116. when writing.
  117.  
  118. If not all tracks are recorded at the same time, and the device reverses
  119.  
  120.  
  121. SCSI-2 draft proposed American National Standard        9-2      Revision 10c2
  122.  
  123.  
  124.  
  125.  
  126.  
  127.  
  128.  
  129. Sequential-Access Devices                                               3/9/90
  130.  
  131. direction when approaching end-of-medium and begins writing on remaining
  132. tracks, the recording method is called serpentine. For serpentine devices that
  133. record only one track at a time, each physical track represents one track
  134. group (Figure 9-3).
  135.  
  136.         BOM                                                         EOM
  137. ==============================================================================
  138.  Track 1   --------------------------------------------------------> TrkGrp 1
  139.  Track 2   <-------------------------------------------------------- TrkGrp 2
  140.    :::     -------------------------------------------------------->   :::
  141.    :::     <--------------------------------------------------------   :::
  142.  Track n   --------------------------------------------------------- TrkGrp n
  143. ==============================================================================
  144.  
  145.                    Figure 9-3: Serpentine Recording Example
  146.  
  147.  
  148. Some multi-track devices have only one track group, using a parallel storage
  149. format that supports the simultaneous recording of all available tracks
  150. (Figure 9-4).
  151.  
  152.         BOM                                                         EOM
  153. ==============================================================================
  154.  Track 1   -------------------------------------------------------->\
  155.  Track 2   --------------------------------------------------------> \
  156.    :::     -------------------------------------------------------->  >TrkGrp1
  157.    :::     --------------------------------------------------------> /
  158.  Track n   -------------------------------------------------------->/
  159. ==============================================================================
  160.  
  161.                     Figure 9-4: Parallel Recording Example
  162.  
  163.  
  164. The serpentine and parallel recording formats shown in the previous examples
  165. define tracks as longitudinal patterns of recorded information.  One other
  166. storage format used by some devices records tracks diagonally across the
  167. medium.  This recording technique is known as helical scan (Figure 9-5).
  168.  
  169.  
  170. ==============================================================================
  171.         BOM    / / / / / / / / / / / / / / / / / / / / / / / / / /  EOM
  172.               / / / / / / / / / / / / / / / / / / / / / / / / / /
  173.              / / / / / / / / / / / / / / / / / / / / / / / / / /
  174.             / / / / / / / / / / / / / / / / / / / / / / / / / /
  175. Track 1 -->/ / / / / / / / / / / / / / / / / / / / / / / / / /<-- Track n
  176. ==============================================================================
  177.  
  178.                   Figure 9-5: Helical Scan Recording Example
  179.  
  180.  
  181.  
  182. SCSI-2 draft proposed American National Standard        9-3      Revision 10c3
  183.  
  184.  
  185.  
  186.  
  187.  
  188.  
  189.  
  190. Sequential-Access Devices                                               3/9/90
  191.  
  192. For most recording formats, an area at beginning-of-medium contains a format
  193. identification in the form of a tone burst or some other recognizable pattern.
  194. User data is not recorded in this area.  The format identification is an
  195. attribute of a volume used for interchange purposes and is defined in
  196. applicable standards.
  197.  
  198. When writing, the initiator needs an indication that it is approaching the end
  199. of the permissible recording area.  This position, called early-warning (EW),
  200. is typically reported to the initiator at a position early enough for the
  201. device to write any buffered data to the medium while still leaving enough
  202. room for additional recorded labels or filemarks.  Some American National
  203. Standards include physical requirements for a marker placed on the medium to
  204. be detected by the device as early-warning (Figure 9-6).
  205.  
  206.                   BOM                           EW       EOM
  207.                   -------------------------------->-------->
  208.  
  209.  
  210.                       Figure 9-6: Early-Warning Example
  211.  
  212.  
  213. For devices which implement large data buffers, the early-warning position
  214. defined by a physical marker may be too close to the end of the recording
  215. region to permit emptying the data buffer(s).  For these devices, a logical
  216. concept of early-warning is often used to signal the initiator at an
  217. appropriate location prior to the physical marker.
  218.  
  219.  
  220. 9.1.3. Partitions within a Volume
  221.  
  222. Another attribute of a volume is called a partition.  Partitions consist of
  223. one or more non-overlapped mini-volumes, each with its own beginning and
  224. ending points, occupying a single physical volume.  Each partition (x) within
  225. a volume has a defined beginning-of-partition (BOP x), an early-warning
  226. position (EW x), and an end-of-partition (EOP x).
  227.  
  228. All volumes have a minimum of one partition called partition zero, the default
  229. data partition.  For devices which support only one partition, the
  230. beginning-of-partition zero (BOP 0) may be equivalent to the beginning-of-
  231. medium and the end-of-partition zero (EOP 0) may be equivalent to the end-of-
  232. medium.
  233.  
  234. When a volume is mounted, it is logically positioned to beginning of the
  235. default data partition (BOP 0).  When a REWIND command is received in any
  236. partition (x), the device positions to the beginning-of-partition (BOP x).
  237.  
  238.  Partitions on a volume do not need to be recorded in any defined order, nor
  239.  
  240.  
  241.  
  242.  
  243. SCSI-2 draft proposed American National Standard        9-4      Revision 10c4
  244.  
  245.  
  246.  
  247.  
  248.  
  249.  
  250.  
  251. Sequential-Access Devices                                               3/9/90
  252.  
  253. do all partition numbers in a sequence need to be present on a volume.  It is
  254. sufficient for a device to be able to locate a partition, given its code
  255. value, or determine that it does not exist on the volume.  For interchange,
  256. information about which partitions are present on a volume may be stored on
  257. the volume in a device-defined area (possibly unavailable to the initiator) or
  258. the information may be an intrinsic attribute of the device implementation.
  259.  
  260. Figure 9-7 shows a possible partition implementation for a four-track
  261. serpentine recording device, assuming that each track group defines a
  262. partition.
  263.  
  264.          BOM                                                            EOM
  265. ==============================================================================
  266. TrkGrp1  BOP0 ----------------------------------------------->EW0-----> EOP0
  267. TrkGrp2  EOP1 <-----EW1<----------------------------------------------- BOP1
  268. TrkGrp3  BOP2 ----------------------------------------------->EW2-----> EOP2
  269. TrkGrp4  EOP3 <-----EW3<----------------------------------------------- BOP3
  270. ==============================================================================
  271.  
  272.        Figure 9-7: Partitioning Example - One Partition per Track Group
  273.  
  274.  
  275. Another possible partition implementation for this four-track serpentine
  276. recording device is shown in Figure 9-8, using two track groups to define each
  277. partition.
  278.  
  279.          BOM                                                            EOM
  280. ==============================================================================
  281. TrkGrp1  BOP0 -------------------------------------------------------->
  282. TrkGrp2  EOP0 <-----EW0<-----------------------------------------------
  283. TrkGrp3  BOP1 -------------------------------------------------------->
  284. TrkGrp4  EOP1 <-----EW1<-----------------------------------------------
  285. ==============================================================================
  286.  
  287.     Figure 9-8: Partitioning Example - One Partition per Two Track Groups
  288.  
  289.  
  290. The previous examples show the beginning and ending points for a partition
  291. aligned with physical bounds of the medium.  This is not a mandatory
  292. requirement for partitioning; it is sufficient for a device to be able to
  293. locate to and stay in any partition bounded by a BOP x and EOP x.  In this
  294. case, a recorded mark or some other device-recognizable attribute could be
  295. used to delineate the partitions.  Figure 9-9 shows a possible two-partition
  296. implementation for a device with only one track group.
  297.  
  298.          BOM                                                            EOM
  299.  
  300.  
  301.  
  302.  
  303.  
  304. SCSI-2 draft proposed American National Standard        9-5      Revision 10c5
  305.  
  306.  
  307.  
  308.  
  309.  
  310.  
  311.  
  312. Sequential-Access Devices                                               3/9/90
  313.  
  314. ==============================================================================
  315.               --------->------->----------------------------->-------->
  316.               --------->------->----------------------------->-------->
  317. TrkGrp1  BOP0 --------->EW0---->EOP0/BOP1-------------------->EW1-----> EOP1
  318.               --------->------->----------------------------->-------->
  319.               --------->------->----------------------------->-------->
  320. ==============================================================================
  321.  
  322.       Figure 9-9: Partitioning Example - Two Partitions per Track Group
  323.  
  324.  
  325. Three methods are defined in the MODE SENSE and MODE SELECT commands for
  326. managing partitions; each method is progressively more difficult to implement
  327. and manage:
  328.  
  329. (1) device-defined fixed locations;
  330. (2) device-defined based on an initiator supplied number of partitions and a
  331. device specific allocation algorithm; and,
  332. (3) definition by name and capacity by an initiator.
  333.  
  334.  
  335. 9.1.4. Logical Elements within a Partition
  336.  
  337. The area between BOP x and EOP x on a typical recorded volume contains at
  338. least two types of initiator accessible elements, data blocks and tape marks.
  339. These elements are controlled and transferred between the initiator and the
  340. medium using READ, READ REVERSE, WRITE, and WRITE FILEMARKS commands.
  341.  
  342. A unit of data supplied or requested by an initiator is called a logical
  343. block.  Logical blocks are stored according to the specifications of the
  344. format for the volume and may be recorded as one or more physical blocks on
  345. the medium.  When the physical block and the logical block are not recorded in
  346. a one-to-one relationship, it is the responsibility of the device to perform
  347. all blocking, de-blocking, padding, stripping, splitting or rebuilding of the
  348. logical data block(s) sent by an initiator.
  349.  
  350. Filemarks are special recorded elements containing no user data.  The filemark
  351. format is defined in some American National Standards.  Initiators
  352. traditionally use filemarks to separate user data from labels and logical
  353. groupings of data from each other.  Since some format standards do not define
  354. an explicit end-of-data (EOD), host software has often used conventions with
  355. filemarks to represent an EOD indication.  At least one American National
  356. Standard specifically defines filemark use for this purpose.  In some
  357. implementations, the device's EOD definition may be specified the initiator
  358. using the MODE SELECT command.
  359.  
  360. A setmark is another type of special recorded element containing no user data,
  361.  
  362.  
  363.  
  364.  
  365. SCSI-2 draft proposed American National Standard        9-6      Revision 10c6
  366.  
  367.  
  368.  
  369.  
  370.  
  371.  
  372.  
  373. Sequential-Access Devices                                               3/9/90
  374.  
  375. providing a segmentation scheme hierarchically superior to filemarks. This
  376. level of segmentation is useful for some high capacity storage devices to
  377. provide concise addressing and fast positioning to specific sets of data
  378. within a partition.  In some implementations, the detection and reporting of
  379. setmarks may be controlled by the initiator using the MODE SELECT command.
  380.  
  381. Inter-block gaps, the gaps between blocks, filemarks, and setmarks, are
  382. introduced on the medium at the time a block or mark is written without
  383. explicit action by the initiator.  Minimum and maximum lengths for inter-block
  384. gaps are defined in some American National Standards.  In some devices, the
  385. length of inter-block gaps may be selected by the initiator using the MODE
  386. SELECT command while in other devices the gaps are fixed and non-changeable.
  387.  
  388. In addition to blocks, filemarks, and setmarks, erase gaps may be recorded on
  389. the medium through use of the ERASE command or device-initiated error recovery
  390. actions.  Although explicitly recorded on the medium, there is normally no
  391. distinction between two contiguous erase gaps.  An erase gap may be a length
  392. of erased medium or a recorded pattern not distinguishable as a block or mark.
  393. Minimum and maximum lengths for erase gaps are defined in some American
  394. National Standards while some devices may have no implementation of an erase
  395. gap.
  396.  
  397. After writing data from BOP x, the medium is considered to be a contiguous
  398. grouping of blocks, filemarks, setmarks, and gaps.  Certain American National
  399. Standards define gap lengths which, if exceeded, are to be considered as
  400. having reached blank medium.  Depending on the format, this blank medium may
  401. be treated as an end-of-data indication, an error recovery area, or an
  402. unrecoverable medium error causing an interchange error.  Unrecorded volumes
  403. (new or erased) may exhibit blank medium characteristics if an attempt is made
  404. to read or space the volume before data has been written.
  405.  
  406. A sequential-access device may be capable of supporting fixed or variable
  407. length blocks.  The concept of fixed or variable mode for writing and reading
  408. blocks only indicates the method by which the initiator specifies the size of
  409. a logical block for transfer and not the method of recording physical blocks
  410. on the medium.  However, a device that supports only fixed-length physical
  411. blocks may only be capable of supporting logical blocks of the same length.
  412. The length of a logical block is always described in bytes.  The length of a
  413. physical block may or may not be recorded as an exact byte count, depending on
  414. the format.
  415.  
  416.  
  417. 9.1.5. Data Buffering
  418.  
  419.  
  420.  
  421.  
  422.  
  423.  
  424.  
  425.  
  426. SCSI-2 draft proposed American National Standard        9-7      Revision 10c7
  427.  
  428.  
  429.  
  430.  
  431.  
  432.  
  433.  
  434. Sequential-Access Devices                                               3/9/90
  435.  
  436.  
  437. A device may contain a temporary storage area capable of holding one or more
  438. logical blocks - a data buffer.  A device data buffer may include any
  439. combination of blocks, filemarks, and setmarks in the process of being written
  440. to the medium, or it may contain read-ahead data blocks transferred from the
  441. medium.
  442.  
  443. A device with a data buffer may be capable of operating in either a buffered
  444. mode or an unbuffered mode.  A device with no data buffer operates only in
  445. unbuffered mode.  Either term is only applicable to the manner in which the
  446. device manages information to be written to the medium. Buffered mode is not
  447. applicable during read commands, regardless of whether read data p asses
  448. through a data buffer.
  449.  
  450. A device operating in buffered mode may return GOOD status for write
  451. operations when all write data has been successfully transferred from the
  452. initiator into the device data buffer.  For devices operating in unbuffered
  453. mode, GOOD status is not returned until all requested data, filemarks, or
  454. setmarks are successfully recorded on the medium.
  455.  
  456. When issuing a buffered WRITE FILEMARKS command with the immediate bit set to
  457. one, GOOD status is returned as soon as the command is validated.  A WRITE
  458. FILEMARKS command with the immediate bit set to zero causes any buffered
  459. blocks, filemarks, and setmarks to be written to the medium.  Upon successful
  460. completion of this process, which is called a synchronize operation, no
  461. blocks, filemarks, or setmarks remain in the data buffer which have not been
  462. written to the medium.  A synchronize operation has no effect on a data buffer
  463. which contains only read-ahead data or write data which has already been
  464. successfully written to the medium.
  465.  
  466. Should an unrecoverable write error occur while in buffered mode, the device
  467. generates an error condition to the current active command.  If no command is
  468. active, the error may be reported on the next applicable operation as a
  469. deferred error (see 7.2.14.2).  For some implementations, asynchronous event
  470. notification (AEN) or extended contingent allegiance (ECA) may be required.
  471. Refer to 6.5.5 and 6.7 for descriptions of AEN and ECA protocol.
  472.  
  473. The READ POSITION command may be used to determine the number and storage
  474. space of buffered blocks not written before the unrecoverable error was
  475. encountered.
  476.  
  477.  A device with read-ahead data blocks in the data buffer does not report an
  478. unrecovered read error until the data block in error is requested by an
  479. initiator.
  480.  
  481.  
  482. 9.1.6. Recorded Object Descriptors (Block Identifiers)
  483.  
  484.  
  485.  
  486.  
  487. SCSI-2 draft proposed American National Standard        9-8      Revision 10c8
  488.  
  489.  
  490.  
  491.  
  492.  
  493.  
  494.  
  495. Sequential-Access Devices                                               3/9/90
  496.  
  497.  
  498. Some recording formats specify that recorded objects (blocks, filemarks, and
  499. setmarks) have identifiers included in the recorded information to help
  500. determine write sequence and also to help detect device positioning errors.
  501. The identifier values are unique within a partition and may be unique within a
  502. volume.
  503.  
  504. The use of the term block identifier may imply some arithmetic sequence
  505. applied to the assignment of recorded objects.  The block identifier
  506. assignment algorithm may be defined in an applicable format standard.
  507.  
  508. For some pre-formatted volumes, the identifiers are associated with physical
  509. blocks.  In variable-length implementations, the identifier can be associated
  510. with a physical block when the logical block and the physical block have a
  511. one-to-one relationship on the medium.
  512.  
  513. Some formats may carry both physical and logical block identifiers recorded on
  514. the medium.  When a logical block is split over more than one physical block,
  515. or multiple logical blocks are concatenated to form a physical block, the
  516. logical block identifier and the physical block identifier are not the same.
  517. Filemarks and setmarks may or may not have recorded identifiers, but if
  518. identifiers are used in the format, then each mark is assigned a value even if
  519. it is not explicitly recorded.
  520.  
  521. The READ POSITION and LOCATE commands use four-byte fields to hold these
  522. format dependent identifiers.  For some implementations, this value may
  523. correspond to a real physical location; however, it is sufficient for the
  524. device to map the identifier to a value representing the unique recorded
  525. object.  With this capability, the READ POSITION command may be used to report
  526. a device-defined block identifier and the initiator may use this value with a
  527. LOCATE command to position to the same location at some future time (provided
  528. the volume has not been rewritten in the interim).
  529.  
  530.  
  531. 9.1.7. Direction and Position Definitions
  532.  
  533. For sequential-access devices, positioning has the connotation of logically
  534. being in, at, before, or after some defined place within a volume.  This
  535. definition means the position is capable of being repeated under the same
  536. circumstances.  The orientation of usage for the four words (in, at, before,
  537. or after) is in one direction, from BOP x toward EOP x.  All positioning
  538. defined below is worded from this perspective.  Devices without buffers have
  539. some physical position which relates to these logical positions.  However,
  540. these definitions do not require the medium to have a physical position
  541. equivalent to the logical position unless explicitly stated.
  542.  
  543. The forward direction is defined as logically progressing from BOP x toward
  544.  
  545.  
  546.  
  547.  
  548. SCSI-2 draft proposed American National Standard        9-9      Revision 10c9
  549.  
  550.  
  551.  
  552.  
  553.  
  554.  
  555.  
  556. Sequential-Access Devices                                               3/9/90
  557.  
  558. EOP x. The reverse direction is defined as logically progressing from EOP x
  559. toward BOP x.  In serpentine devices, the logical forward or reverse direction
  560. has an alternating relationship to the physical motion of the medium.
  561.  
  562. The concept of being "in" some position means not being outside a defined
  563. region.  The definition allows the position to be on the boundary of a defined
  564. region.  When a volume is first mounted, the logical position is always at the
  565. beginning of the default data partition (BOP0).  Whenever a volume is mounted
  566. and the medium motion is stopped, the position is in some partition.  While
  567. moving between partitions, there is no stable position.
  568.  
  569. The concept of being "at" some position indicates being positioned to a
  570. logical or physical extremity of a partition.  A sequential-access device may
  571. be positioned at beginning-of-medium, at BOP x, at end-of-data (EOD), at EOP
  572. x, or at end-of-medium (EOM), since these are stable positions at extremities
  573. of a partition.
  574.  
  575. The concept of being "before" some position indicates that there is some
  576. element (data block, filemark, setmark, or other defined point) which may be
  577. encountered when moving toward EOP x, if the proper commands are issued.
  578. Being positioned before a particular data block means that if the device
  579. receives a valid READ command, the data block is transferred to the initiator.
  580. This position may also be before EW x and EOP x, since these are defined
  581. points within any partition.  However, if data has not been written to the
  582. end-of-partition, these points may not be accessible by the initiator.
  583.  
  584. The concept of being "after" some position indicates that there is some
  585. element (data block, filemark, setmark, or other defined point) on the BOP x
  586. side of the current position which may be encountered if the proper commands
  587. are issued.  When a READ command for a single data block has been successfully
  588. executed, the logical position is after the transferred data block.
  589.  
  590. 9.1.8. Error Reporting
  591.  
  592. If any of the following conditions occur during the execution of a command the
  593. target shall return CHECK CONDITION status.  The appropriate sense key and
  594. additional sense code should be set.  The following table illustrates some
  595. error conditions and the applicable sense keys.  The table does not provide an
  596. exhaustive enumeration of all conditions that may cause the CHECK CONDITION
  597. status.
  598.  
  599. Condition                                              Sense Key
  600.  
  601.  
  602.  
  603.  
  604.  
  605.  
  606.  
  607.  
  608.  
  609. SCSI-2 draft proposed American National Standard        9-10      Revision 10c10
  610.  
  611.  
  612.  
  613.  
  614.  
  615.  
  616.  
  617. Sequential-Access Devices                                               3/9/90
  618.  
  619. ----------------------------------------------------   ---------------
  620. Invalid logical block address                          ILLEGAL REQUEST
  621.  
  622. Unsupported option requested                           ILLEGAL REQUEST
  623.  
  624. Target reset or medium change since
  625. last command from this initiator                       UNIT ATTENTION
  626.  
  627. Self diagnostic failed                                 HARDWARE ERROR
  628.  
  629. Unrecovered read error                                 MEDIUM ERROR
  630.                                                        HARDWARE ERROR
  631.  
  632. Recovered read or write error                          RECOVERED ERROR
  633.  
  634. Overrun or other error that might
  635. be resolved by repeating the command                   ABORTED COMMAND
  636.  
  637. Attempt a WRITE, READ, READ REVERSE, VERIFY, or        ILLEGAL REQUEST
  638. RECOVER BUFFERED DATA command with the fixed bit
  639. set to zero and variable block mode is not supported
  640.  
  641. Attempt a WRITE, READ, READ REVERSE, VERIFY, or        ILLEGAL REQUEST
  642. RECOVER BUFFERED DATA command with a fixed bit of
  643. zero and requested block length is not supported
  644.  
  645. Attempt a WRITE, READ, READ REVERSE, VERIFY, or        ILLEGAL REQUEST
  646. RECOVER BUFFERED DATA command with a fixed bit of
  647. one and MODE SENSE block length set to zero
  648.  
  649. Attempt to execute an erase or write-type operation    DATA PROTECT
  650. on write protected medium
  651.  
  652. Deferred write error                                   MEDIUM ERROR
  653.                                                        VOLUME OVERFLOW
  654.  
  655. In the case of an unrecovered read or write error, if the read-write error
  656. recovery page (9.3.3.4) is implemented, the current values specify the target
  657. error recovery criteria.  If this page is not implemented, the error recovery
  658. is vendor specific.
  659.  
  660. In the case of an unrecovered read error, if the fixed bit is one, the valid
  661. bit shall be set to one and the information field shall be set to the
  662. requested transfer length minus the actual number of blocks read (not
  663. including the unrecovered block).  If the fixed bit is zero, the valid bit
  664. shall be set to one and the information field shall be set to the requested
  665. transfer length.  Upon termination, the logical position shall be after the
  666. unrecovered block.
  667.  
  668. In the case of an unrecovered write error, if unbuffered mode is selected and
  669.  
  670. SCSI-2 draft proposed American National Standard        9-11      Revision 10c11
  671.  
  672.  
  673.  
  674.  
  675.  
  676.  
  677.  
  678. Sequential-Access Devices                                               3/9/90
  679.  
  680. the fixed bit is set to one, the valid bit shall be set to one and the
  681. information field shall be set to the requested transfer length minus the
  682. actual number of blocks written.  If unbuffered mode is selected and the fixed
  683. bit is set to zero, the information field shall be set to the requested
  684. transfer length.
  685.  
  686. In the case of an unrecovered write error or a deferred write error, if
  687. buffered mode is selected and the fixed bit is one, the valid bit shall be set
  688. to one and the information field shall be set to the total number of blocks,
  689. filemarks, and setmarks not written (the number of blocks not transferred from
  690. the initiator plus the number of blocks, filemarks, and setmarks remaining in
  691. the target's buffer).  If buffered mode is selected and the fixed bit is zero,
  692. the information field shall be set to the total number of bytes, filemarks,
  693. and setmarks not written (the number of bytes not transferred from the
  694. initiator plus the number of bytes, filemarks, and setmarks remaining in the
  695. target's buffer).  In both cases, the value in the information field may
  696. exceed the transfer length.
  697.  
  698. In the case of an unrecovered write error or a deferred write error, if
  699. buffered mode 1h is selected, the error shall be reported to the first
  700. initiator issuing a command (other than INQUIRY or REQUEST SENSE) or the first
  701. initiator responding to asynchronous event notification.  If buffered mode 2h
  702. is selected, the error shall be reported to the initiator with unwritten data
  703. in the buffer.
  704.  
  705.  
  706.  
  707. 9.2. Command Descriptions for Sequential-Access Devices
  708.  
  709.  
  710.  
  711.  
  712.  
  713.  
  714.  
  715.  
  716.  
  717.  
  718.  
  719.  
  720.  
  721.  
  722.  
  723.  
  724.  
  725.  
  726.  
  727.  
  728.  
  729.  
  730.  
  731. SCSI-2 draft proposed American National Standard        9-12      Revision 10c12
  732.  
  733.  
  734.  
  735.  
  736.  
  737.  
  738.  
  739. Sequential-Access Devices                                               3/9/90
  740.  
  741.  
  742. The commands for sequential-access devices shall be as shown in Table 9-1.
  743.  
  744.               Table 9-1: Commands for Sequential-Access Devices
  745.  
  746. ==============================================================================
  747.                                Operation
  748. Command Name                     Code         Type    Section
  749. ------------------------------------------------------------------------------
  750.  CHANGE DEFINITION                40h          O       7.2.1
  751.  COMPARE                          39h          O       7.2.2
  752.  COPY                             18h          O       7.2.3
  753.  COPY AND VERIFY                  3Ah          O       7.2.4
  754.  ERASE                            19h          M       9.2.1
  755.  INQUIRY                          12h          M       7.2.5
  756.  LOAD UNLOAD                      1Bh          O       9.2.2
  757.  LOCATE                           2Bh          O       9.2.3
  758.  LOG SELECT                       4Ch          O       7.2.6
  759.  LOG SENSE                        4Dh          O       7.2.7
  760.  MODE SELECT(6)                   15h          M       7.2.8
  761.  MODE SELECT(10)                  55h          O       7.2.9
  762.  MODE SENSE(6)                    1Ah          M       7.2.10
  763.  MODE SENSE(10)                   5Ah          O       7.2.11
  764.  PREVENT ALLOW MEDIUM REMOVAL     1Eh          O       8.2.4
  765.  READ                             08h          M       9.2.4
  766.  READ BLOCK LIMITS                05h          M       9.2.5
  767.  READ BUFFER                      3Ch          O       7.2.12
  768.  READ POSITION                    34h          O       9.2.6
  769.  READ REVERSE                     0Fh          O       9.2.7
  770.  RECEIVE DIAGNOSTIC RESULTS       1Ch          O       7.2.13
  771.  RECOVER BUFFERED DATA            14h          O       9.2.8
  772.  RELEASE UNIT                     17h          M       9.2.9
  773.  REQUEST SENSE                    03h          M       7.2.14
  774.  RESERVE UNIT                     16h          M       9.2.10
  775.  REWIND                           01h          M       9.2.11
  776.  SEND DIAGNOSTIC                  1Dh          M       7.2.15
  777.  SPACE                            11h          M       9.2.12
  778.  TEST UNIT READY                  00h          M       7.2.16
  779.  VERIFY                           13h          O       9.2.13
  780.  WRITE                            0Ah          M       9.2.14
  781.  WRITE BUFFER                     3Bh          O       7.2.17
  782.  WRITE FILEMARKS                  10h          M       9.2.15
  783. ==============================================================================
  784.  
  785. Key: M  =  Command implementation is mandatory.
  786.      O  =  Command implementation is optional.
  787.  
  788. The following command codes are vendor specific: 02h, 06h, 07h, 09h, 0Ch, 0Dh,
  789. 0Eh.  All other command codes for sequential-access devices are reserved for
  790. future standardization.
  791.  
  792. SCSI-2 draft proposed American National Standard        9-13      Revision 10c13
  793.  
  794.  
  795.  
  796.  
  797.  
  798.  
  799.  
  800. Sequential-Access Devices                                               3/9/90
  801.  
  802.  
  803. 9.2.1. ERASE Command
  804.  
  805.                           Table 9-2: ERASE Command
  806.  
  807. ==============================================================================
  808.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  809. Byte |        |        |        |        |        |        |        |        |
  810. ==============================================================================
  811.  0   |                           Operation Code (19h)                        |
  812. -----|-----------------------------------------------------------------------|
  813.  1   |   Logical Unit Number    |         Reserved          | Immed |  Long  |
  814. -----|-----------------------------------------------------------------------|
  815.  2   |                           Reserved                                    |
  816. -----|-----------------------------------------------------------------------|
  817.  3   |                           Reserved                                    |
  818. -----|-----------------------------------------------------------------------|
  819.  4   |                           Reserved                                    |
  820. -----|-----------------------------------------------------------------------|
  821.  5   |                           Control                                     |
  822. ==============================================================================
  823.  
  824.  
  825. The ERASE command (Table 9-2) causes part or all of the medium to be erased
  826. beginning at the current position on the logical unit.  As used here, "erased"
  827. means either the medium shall be erased or a pattern shall be written on the
  828. medium that appears as a gap to the target.
  829.  
  830. An immediate (Immed) bit of zero indicates that the target shall not return
  831. status until the erase operation has completed.  An Immed bit of one indicates
  832. that the target shall return status as soon as the command has been validated.
  833. If CHECK CONDITION status is returned for an ERASE command with an Immed bit
  834. of one, the erase operation shall not be performed.
  835.  
  836. A long bit of one indicates that all remaining medium in the current partition
  837. shall be erased beginning at the current logical position.  If the Immed bit
  838. is one, the target shall return status as soon as all buffered commands have
  839. completed execution and the command descriptor block of the ERASE command has
  840. been validated.  The logical position following an ERASE command with a long
  841. bit of one is not specified by this standard.
  842.  
  843. IMPLEMENTORS NOTE:  Some targets may reject an ERASE command with the long bit
  844. set to one if the logical unit is not at beginning-of-partition.
  845.  
  846. A long bit of zero specifies an erase gap defined by the gap size field in the
  847.  
  848.  
  849.  
  850.  
  851.  
  852.  
  853. SCSI-2 draft proposed American National Standard        9-14      Revision 10c14
  854.  
  855.  
  856.  
  857.  
  858.  
  859.  
  860.  
  861. Sequential-Access Devices                                               3/9/90
  862.  
  863. device configuration page (9.3.3.1).  If the gap size is zero or the field is
  864. not supported, a device defined erase gap operation shall be performed.  If
  865. the Immed bit is one, the target shall return status as soon as the command
  866. descriptor block has been validated.  Erase gaps may be used in host
  867. controlled error recovery or "update in place" applications.
  868.  
  869. If the logical unit encounters early-warning during an ERASE command, and any
  870. buffered data, filemarks, or setmarks remain to be written, the target action
  871. shall be as defined for the early-warning condition of the WRITE command
  872. (9.2.14).  If the long bit is zero, the erase operation shall terminate with
  873. CHECK CONDITION status and return sense data as defined for the WRITE command.
  874. Any buffered erases are not reported as part of the information field.
  875.  
  876. 9.2.2. LOAD UNLOAD Command
  877.  
  878.                        Table 9-3: LOAD UNLOAD Command
  879.  
  880. ==============================================================================
  881.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  882. Byte |        |        |        |        |        |        |        |        |
  883. ==============================================================================
  884.  0   |                           Operation Code (1Bh)                        |
  885. -----|-----------------------------------------------------------------------|
  886.  1   |   Logical Unit Number    |              Reserved             | Immed  |
  887. -----|-----------------------------------------------------------------------|
  888.  2   |                           Reserved                                    |
  889. -----|-----------------------------------------------------------------------|
  890.  3   |                           Reserved                                    |
  891. -----|-----------------------------------------------------------------------|
  892.  4   |                           Reserved         |   EOT  | Re-Ten |  Load  |
  893. -----|-----------------------------------------------------------------------|
  894.  5   |                           Control                                     |
  895. ==============================================================================
  896.  
  897.  
  898. The LOAD UNLOAD command (Table 9-3) requests that the target enable or disable
  899. the logical unit for further operations.  This command may also be used to
  900. request a re-tension function.  Prior to performing the load or unload
  901. operation, the target shall ensure that all buffered data, filemarks, and
  902. setmarks have been transferred to the medium.
  903.  
  904. An immediate (Immed) bit of zero indicates that the target shall not return
  905. status until the load or unload operation has completed.  An Immed bit of one
  906. indicates that the target shall return status as soon as all buffered commands
  907. have completed execution and the command descriptor block of the LOAD UNLOAD
  908. command has been validated.  If CHECK CONDITION status is returned for a LOAD
  909. UNLOAD command with an Immed bit of one, the load or unload operation shall
  910. not be performed.
  911.  
  912. IMPLEMENTORS NOTE:  For compatibility with devices implemented prior to this
  913.  
  914. SCSI-2 draft proposed American National Standard        9-15      Revision 10c15
  915.  
  916.  
  917.  
  918.  
  919.  
  920.  
  921.  
  922. Sequential-Access Devices                                               3/9/90
  923.  
  924. version of the standard, a WRITE FILEMARKS command with an Immed bit of zero
  925. should be used to ensure that all buffered data, filemarks, or setmarks have
  926. been transferred to the medium prior to issuing a LOAD UNLOAD command with an
  927. Immed bit of one.
  928.  
  929. An end-of-tape (EOT) bit of one indicates that an unload operation (load bit
  930. set to zero) shall position the medium at end-of-medium for removal from the
  931. device.  An EOT bit of zero indicates that an unload operation shall position
  932. the medium at beginning-of-medium for removal from the device.
  933.  
  934. An EOT bit of one and a load bit of one shall cause the target to return CHECK
  935. CONDITION status and the sense key shall be set to ILLEGAL REQUEST in the
  936. sense data.
  937.  
  938. A re-tension (Re-Ten) bit of one indicates that the medium on the logical unit
  939. shall be correctly tensioned.  Implementation of the re-tension function is
  940. device specific.
  941.  
  942. If the load bit is set to one, the medium in the logical unit shall be loaded
  943. and positioned to the beginning-of-partition zero.  If the load bit is zero,
  944. the medium in the logical unit shall be positioned for removal at the extreme
  945. position along the medium specified by the EOT bit.  Following successful
  946. completion of an unload operation, the target shall return CHECK CONDITION
  947. status with the sense key set to NOT READY for all subsequent medium-access
  948. commands until a new volume is mounted or a load operation is successfully
  949. completed.
  950.  
  951. When operating in buffered mode 1h or 2h (see 9.3.3), the target shall discard
  952. any unwritten buffered data after the LOAD UNLOAD command is validated if the
  953. previous command was terminated with CHECK CONDITION status and the device is
  954. unable to continue successfully writing.
  955.  
  956. 9.2.3. LOCATE Command
  957.  
  958.  
  959.  
  960.  
  961.  
  962.  
  963.  
  964.  
  965.  
  966.  
  967.  
  968.  
  969.  
  970.  
  971.  
  972.  
  973.  
  974.  
  975. SCSI-2 draft proposed American National Standard        9-16      Revision 10c16
  976.  
  977.  
  978.  
  979.  
  980.  
  981.  
  982.  
  983. Sequential-Access Devices                                               3/9/90
  984.  
  985.  
  986.                           Table 9-4: LOCATE Command
  987.  
  988. ==============================================================================
  989.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  990. Byte |        |        |        |        |        |        |        |        |
  991. ==============================================================================
  992.  0   |                           Operation Code (2Bh)                        |
  993. -----|-----------------------------------------------------------------------|
  994.  1   |    Logical Unit Number   |      Reserved   |   BT   |   CP   | Immed  |
  995. -----|-----------------------------------------------------------------------|
  996.  2   |                           Reserved                                    |
  997. -----|-----------------------------------------------------------------------|
  998.  3   | (MSB)                                                                 |
  999. -----|---                                                                 ---|
  1000.  4   |                                                                       |
  1001. -----|---                        Block Address                            ---|
  1002.  5   |                                                                       |
  1003. -----|---                                                                 ---|
  1004.  6   |                                                                 (LSB) |
  1005. -----|-----------------------------------------------------------------------|
  1006.  7   |                           Reserved                                    |
  1007. -----|-----------------------------------------------------------------------|
  1008.  8   |                           Partition                                   |
  1009. -----|-----------------------------------------------------------------------|
  1010.  9   |                           Control                                     |
  1011. ==============================================================================
  1012.  
  1013.  
  1014. LOCATE command (Table 9-4) causes the target to position the logical unit to
  1015. the specified block address in a specified partition.  Upon completion, the
  1016. logical position shall be before the specified location.  Prior to performing
  1017. the locate operation, the target shall ensure that all buffered data,
  1018. filemarks, and setmarks have been transferred to the medium.
  1019.  
  1020. A block address type (BT) bit of one indicates the value in the block address
  1021. field shall be interpreted as a device-specific value.  A BT bit of zero
  1022. indicates the value in the block address field shall be interpreted as an SCSI
  1023. logical block address.
  1024.  
  1025. A change partition (CP) bit of one indicates that a change to the partition
  1026. specified in the partition field is to occur prior to positioning to the block
  1027. specified in the block address field.  A CP bit of zero indicates no partition
  1028. change is to be made and the partition field is to be ignored.
  1029.  
  1030. An immediate (Immed) bit of zero indicates that the target shall not return
  1031.  
  1032.  
  1033.  
  1034.  
  1035.  
  1036. SCSI-2 draft proposed American National Standard        9-17      Revision 10c17
  1037.  
  1038.  
  1039.  
  1040.  
  1041.  
  1042.  
  1043.  
  1044. Sequential-Access Devices                                               3/9/90
  1045.  
  1046. status until the locate operation has completed.  An Immed bit of one
  1047. indicates that the target shall return status as soon as all buffered commands
  1048. have completed execution and the command descriptor block of the LOCATE
  1049. command has been validated.  If CHECK CONDITION status is returned for a
  1050. LOCATE command with an Immed bit of one, the locate operation shall not be
  1051. performed.
  1052.  
  1053. The block address field specifies the block address to which the target shall
  1054. position the medium based on the current setting of the BT bit.
  1055.  
  1056. The partition field specifies which partition to select if the CP bit is one.
  1057. Refer to the sequential-access device model (9.1.3) and the medium partition
  1058. pages (9.3.3.2 and 9.3.3.3) for additional information about partitioning.
  1059.  
  1060. 9.2.4. READ Command
  1061.  
  1062.                            Table 9-5: READ Command
  1063.  
  1064. ==============================================================================
  1065.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1066. Byte |        |        |        |        |        |        |        |        |
  1067. ==============================================================================
  1068.  0   |                           Operation Code (08h)                        |
  1069. -----|-----------------------------------------------------------------------|
  1070.  1   |   Logical Unit Number     |        Reserved         |  SILI  | Fixed  |
  1071. -----|-----------------------------------------------------------------------|
  1072.  2   | (MSB)                                                                 |
  1073. -----|---                                                                 ---|
  1074.  3   |                           Transfer Length                             |
  1075. -----|---                                                                 ---|
  1076.  4   |                                                                 (LSB) |
  1077. -----|-----------------------------------------------------------------------|
  1078.  5   |                           Control                                     |
  1079. ==============================================================================
  1080.  
  1081.  
  1082. The READ command (Table 9-6) requests that the target transfer one or more
  1083. block(s) of data to the initiator beginning with the next block on the logical
  1084. unit.
  1085.  
  1086. The fixed bit specifies whether fixed-length or variable-length blocks are to
  1087. be transferred.  Refer to the READ BLOCK LIMITS command (9.2.5) for additional
  1088. information about fixed and variable block mode.
  1089.  
  1090. If the fixed bit is one, the transfer length specifies the number of fixed-
  1091.  
  1092.  
  1093.  
  1094.  
  1095.  
  1096.  
  1097. SCSI-2 draft proposed American National Standard        9-18      Revision 10c18
  1098.  
  1099.  
  1100.  
  1101.  
  1102.  
  1103.  
  1104.  
  1105. Sequential-Access Devices                                               3/9/90
  1106.  
  1107. length blocks to be transferred, using the current block length reported in
  1108. the mode parameters block descriptor (7.3.3).  If the fixed bit is zero, a
  1109. variable-length block is requested with the transfer length specifying the
  1110. maximum number of bytes allocated for the returned data.
  1111.  
  1112. A successful READ command with a fixed bit of one shall transfer the requested
  1113. transfer length times the current block length in bytes to the initiator.  A
  1114. successful READ command with a fixed bit of zero shall transfer the requested
  1115. transfer length in bytes to the initiator.  Upon completion, the logical
  1116. position shall be after the last block transferred (end-of-partition side).
  1117.  
  1118. If the suppress incorrect length indicator (SILI) bit is one and the fixed bit
  1119. is zero, the target shall:
  1120. (1) report CHECK CONDITION status for an incorrect length condition only if
  1121. the overlength condition exists (see 9.4) and the block length field in the
  1122. mode parameter block descriptor is nonzero (see 7.3.3)
  1123. (2) not report CHECK CONDITION status if the only error is the underlength
  1124. condition (see 9.4), or if the only error is the overlength condition and the
  1125. block length field of the mode parameters block descriptor is zero.
  1126.  
  1127. IMPLEMENTORS NOTE:  Since the residue information normally provided in the
  1128. information field of the sense data may not be available when the SILI bit is
  1129. set, other methods for determining the actual block length should be used
  1130. (e.g., including length information in the data block).
  1131.  
  1132. If the SILI bit is one and the fixed bit is one, the target shall terminate
  1133. the command with CHECK CONDITION status and the sense key shall be set to
  1134. ILLEGAL REQUEST with an additional sense code of INVALID FIELD IN CDB.
  1135.  
  1136. If the SILI bit is zero and an incorrect length block is read, CHECK CONDITION
  1137. status shall be returned and the ILI and valid bits shall be set to one in the
  1138. sense data.  Upon termination, the logical position shall be after the
  1139. incorrect length block (end-of-partition side).  If the fixed bit is one, the
  1140. information field shall be set to the requested transfer length minus the
  1141. actual number of blocks read (not including the incorrect length block).  If
  1142. the fixed bit is zero, the information field shall be set to the requested
  1143. transfer length minus the actual block length.  Targets that do not support
  1144. negative values shall set the information field to zero if the overlength
  1145. condition exists (see 9.4).
  1146.  
  1147. IMPLEMENTORS NOTE:  In the above case with the fixed bit of one, only the
  1148. position of the incorrect-length logical block can be determined from the
  1149. sense data.  The actual length of the incorrect block is not reported.  Other
  1150. means may be used to determine its actual length (e.g., read it again with the
  1151. fixed bit set to zero).
  1152.  
  1153. A transfer length of zero indicates that no data shall be transferred.  This
  1154.  
  1155.  
  1156.  
  1157.  
  1158. SCSI-2 draft proposed American National Standard        9-19      Revision 10c19
  1159.  
  1160.  
  1161.  
  1162.  
  1163.  
  1164.  
  1165.  
  1166. Sequential-Access Devices                                               3/9/90
  1167.  
  1168. condition shall not be considered an error and the logical position shall not
  1169. be changed.
  1170.  
  1171. If the logical unit encounters a filemark during a READ command, CHECK
  1172. CONDITION status shall be returned and the filemark and valid bits shall be
  1173. set to one in the sense data.  The sense key shall be set to NO SENSE or
  1174. RECOVERED ERROR, as appropriate.  Upon termination, the logical position shall
  1175. be after the filemark (end-of-partition side).  If the fixed bit is one, the
  1176. information field shall be set to the requested transfer length minus the
  1177. actual number of blocks read (not including the filemark).  If the fixed bit
  1178. is zero, the information field shall be set to the requested transfer length.
  1179.  
  1180. If the logical unit encounters a setmark during a READ command and the RSmk
  1181. bit is set to one in the device configuration page (9.3.3.1), CHECK CONDITION
  1182. status shall be returned and the filemark and valid bits shall be set to one
  1183. in the sense data.  The sense key shall be set to NO SENSE or RECOVERED ERROR,
  1184. as appropriate, and the additional sense code shall be set to SETMARK
  1185. DETECTED.  Upon termination, the logical position shall be after the setmark
  1186. (end-of-partition side).  If the fixed bit is one, the information field shall
  1187. be set to the requested transfer length minus the actual number of blocks read
  1188. (not including the setmark).  If the fixed bit is zero, the information field
  1189. shall be set to the requested transfer length.  The target shall not return
  1190. CHECK CONDITION when a setmark is encountered if the RSmk bit is set to zero
  1191. or if this option is not supported.
  1192.  
  1193. If the logical unit encounters early-warning during a READ command and the REW
  1194. bit is set to one in the device configuration page (see 9.3.3.1), CHECK
  1195. CONDITION status shall be returned upon completion of the current block.  The
  1196. sense key shall be set to NO SENSE or RECOVERED ERROR, as appropriate.  The
  1197. EOM and valid bits shall be set to one in the sense data.  Upon termination,
  1198. the logical position shall be after the last block transferred (end-of-
  1199. partition side).  If the fixed bit is one, the information field shall be set
  1200. to the requested transfer length minus the actual number of blocks read.  If
  1201. the fixed bit is zero, the information field shall be set to the requested
  1202. transfer length minus the actual block length.  The target shall not return
  1203. CHECK CONDITION status when early-warning is encountered if the REW bit is
  1204. zero or if the REW option is not supported.
  1205.  
  1206. IMPLEMENTORS NOTE:  A REW bit of one is not recommended for most system
  1207. applications since read data may be present after early-warning.
  1208.  
  1209. If the logical unit encounters end-of-data during a READ command, CHECK
  1210.  
  1211.  
  1212.  
  1213.  
  1214.  
  1215.  
  1216.  
  1217.  
  1218.  
  1219. SCSI-2 draft proposed American National Standard        9-20      Revision 10c20
  1220.  
  1221.  
  1222.  
  1223.  
  1224.  
  1225.  
  1226.  
  1227. Sequential-Access Devices                                               3/9/90
  1228.  
  1229. CONDITION status shall be returned, the sense key shall be set to BLANK CHECK,
  1230. and the valid bit shall be set to one in the sense data.  If end-of-data is
  1231. encountered at or after early-warning, the EOM bit shall also be set to one.
  1232. Upon termination, the logical position shall be after the last recorded
  1233. logical block (end-of-partition side).  If the fixed bit is one, the
  1234. information field shall be set to the requested transfer length minus the
  1235. actual number of blocks read.  If the fixed bit is zero, the information field
  1236. shall be set to the requested transfer length.
  1237.  
  1238. If the logical unit encounters end-of-partition during a READ command, CHECK
  1239. CONDITION status shall be returned, the sense key shall be set to MEDIUM
  1240. ERROR, and the EOM and valid bits shall be set to one in the sense data. The
  1241. medium position following this condition is not defined.  If the fixed bit is
  1242. one, the information field shall be set to the requested transfer length minus
  1243. the actual number of blocks read. If the fixed bit is zero, the information
  1244. field shall be set to the requested transfer length.
  1245.  
  1246.  
  1247. 9.2.5. READ BLOCK LIMITS Command
  1248.  
  1249.                     Table 9-6: READ BLOCK LIMITS Command
  1250.  
  1251. ==============================================================================
  1252.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1253. Byte |        |        |        |        |        |        |        |        |
  1254. ==============================================================================
  1255.  0   |                           Operation Code (05h)                        |
  1256. -----|-----------------------------------------------------------------------|
  1257.  1   |   Logical Unit Number    |                  Reserved                  |
  1258. -----|-----------------------------------------------------------------------|
  1259.  2   |                           Reserved                                    |
  1260. -----|-----------------------------------------------------------------------|
  1261.  3   |                           Reserved                                    |
  1262. -----|-----------------------------------------------------------------------|
  1263.  4   |                           Reserved                                    |
  1264. -----|-----------------------------------------------------------------------|
  1265.  5   |                           Control                                     |
  1266. ==============================================================================
  1267.  
  1268.  
  1269. The READ BLOCK LIMITS command (Table 9-6) requests that the logical unit's
  1270. block length limits capability be returned.  The READ BLOCK LIMITS data shown
  1271. in Table 9-7 shall be returned during the DATA IN phase of the command.
  1272.  
  1273.                       Table 9-7: READ BLOCK LIMITS Data
  1274.  
  1275.  
  1276.  
  1277.  
  1278.  
  1279.  
  1280. SCSI-2 draft proposed American National Standard        9-21      Revision 10c21
  1281.  
  1282.  
  1283.  
  1284.  
  1285.  
  1286.  
  1287.  
  1288. Sequential-Access Devices                                               3/9/90
  1289.  
  1290.  
  1291. ==============================================================================
  1292.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1293. Byte |        |        |        |        |        |        |        |        |
  1294. ==============================================================================
  1295.  0   |                           Reserved                                    |
  1296. -----|-----------------------------------------------------------------------|
  1297.  1   | (MSB)                                                                 |
  1298. -----|---                                                                 ---|
  1299.  2   |                           Maximum Block Length Limit                  |
  1300. -----|---                                                                 ---|
  1301.  3   |                                                                 (LSB) |
  1302. -----|-----------------------------------------------------------------------|
  1303.  4   | (MSB)                                                                 |
  1304. -----|---                        Minimum Block Length Limit               ---|
  1305.  5   |                                                                 (LSB) |
  1306. ==============================================================================
  1307.  
  1308.  
  1309. If the maximum block length limit equals the minimum block length limit, the
  1310. logical unit supports the transfer of data in the fixed-block mode only, with
  1311. the block length equal to the given limit.  In this case the fixed bit shall
  1312. be set to one in the WRITE and READ commands
  1313.  
  1314. If the maximum block length limit is not equal to the minimum block length
  1315. limit, the logical unit supports the transfer of data in either fixed-block or
  1316. variable-block modes, with the block length constrained between the given
  1317. limits in either mode.  The transfer mode is controlled by the fixed bit in
  1318. the WRITE or READ commands. If the maximum block limit is zero a maximum block
  1319. length is not specified.
  1320.  
  1321. 9.2.6. READ POSITION Command
  1322.  
  1323.  
  1324.  
  1325.  
  1326.  
  1327.  
  1328.  
  1329.  
  1330.  
  1331.  
  1332.  
  1333.  
  1334.  
  1335.  
  1336.  
  1337.  
  1338.  
  1339.  
  1340.  
  1341. SCSI-2 draft proposed American National Standard        9-22      Revision 10c22
  1342.  
  1343.  
  1344.  
  1345.  
  1346.  
  1347.  
  1348.  
  1349. Sequential-Access Devices                                               3/9/90
  1350.  
  1351.  
  1352.                       Table 9-8: READ POSITION Command
  1353.  
  1354. ==============================================================================
  1355.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1356. Byte |        |        |        |        |        |        |        |        |
  1357. ==============================================================================
  1358.  0   |                           Operation Code (34h)                        |
  1359. -----|-----------------------------------------------------------------------|
  1360.  1   |   Logical Unit Number    |             Reserved              |   BT   |
  1361. -----|-----------------------------------------------------------------------|
  1362.  2   |                           Reserved                                    |
  1363. -----|-----------------------------------------------------------------------|
  1364.  3   |                           Reserved                                    |
  1365. -----|-----------------------------------------------------------------------|
  1366.  4   |                           Reserved                                    |
  1367. -----|-----------------------------------------------------------------------|
  1368.  5   |                           Reserved                                    |
  1369. -----|-----------------------------------------------------------------------|
  1370.  6   |                           Reserved                                    |
  1371. -----|-----------------------------------------------------------------------|
  1372.  7   |                           Reserved                                    |
  1373. -----|-----------------------------------------------------------------------|
  1374.  8   |                           Reserved                                    |
  1375. -----|-----------------------------------------------------------------------|
  1376.  9   |                           Control                                     |
  1377. ==============================================================================
  1378.  
  1379.  
  1380. The READ POSITION command (Table 9-8) reports the current position of the
  1381. logical unit and any data blocks in the buffer.  No medium movement shall
  1382. occur as a result of the command.
  1383.  
  1384. A block address type (BT) bit of one requests the target to return its current
  1385. first block location and last block location as a device-specific value.  A BT
  1386. bit of zero requests the target to return the first block location and the
  1387. last block location as an SCSI logical block address (relative to a
  1388. partition).
  1389.  
  1390.  If the logical unit is not capable of reporting block locations, the BPU bit
  1391. shall be set to one in the returned data.  Support for this option of the READ
  1392. POSITION command is indicated by a BIS bit set to one in the device
  1393. configuration page (9.3.3.1).
  1394.  
  1395. The READ POSITION data shown in Table 9-9 shall be returned during the DATA IN
  1396. phase of the command.
  1397.  
  1398.                     Table 9-9: READ POSITION Data Format
  1399.  
  1400.  
  1401.  
  1402. SCSI-2 draft proposed American National Standard        9-23      Revision 10c23
  1403.  
  1404.  
  1405.  
  1406.  
  1407.  
  1408.  
  1409.  
  1410. Sequential-Access Devices                                               3/9/90
  1411.  
  1412.  
  1413. ==============================================================================
  1414.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1415. Byte |        |        |        |        |        |        |        |        |
  1416. ==============================================================================
  1417.  0   |  BOP   |   EOP  |        Reserved          |  BPU   |     Reserved    |
  1418. -----|-----------------------------------------------------------------------|
  1419.  1   |                          Partition Number                             |
  1420. -----|-----------------------------------------------------------------------|
  1421.  2   |                          Reserved                                     |
  1422. -----|-----------------------------------------------------------------------|
  1423.  3   |                          Reserved                                     |
  1424. -----|-----------------------------------------------------------------------|
  1425.  4   | (MSB)                                                                 |
  1426. - - -|- -                       First Block Location                      - -|
  1427.  7   |                                                                 (LSB) |
  1428. -----|-----------------------------------------------------------------------|
  1429.  8   | (MSB)                                                                 |
  1430. - - -|- -                       Last Block Location                       - -|
  1431.  11  |                                                                 (LSB) |
  1432. -----|-----------------------------------------------------------------------|
  1433.  12  |                          Reserved                                     |
  1434. -----|-----------------------------------------------------------------------|
  1435.  13  | (MSB)                                                                 |
  1436. - - -|- -                       Number of Blocks in Buffer                - -|
  1437.  15  |                                                                 (LSB) |
  1438. -----|-----------------------------------------------------------------------|
  1439.  16  | (MSB)                                                                 |
  1440. - - -|- -                       Number of Bytes in Buffer                 - -|
  1441.  19  |                                                                 (LSB) |
  1442. ==============================================================================
  1443.  
  1444.  
  1445. A beginning of partition (BOP) bit of one indicates that the logical unit is
  1446. at the beginning-of-partition in the current partition.  A BOP bit of zero
  1447. indicates that the current logical position is not at the beginning-of-
  1448. partition.
  1449.  
  1450. An end of partition (EOP) bit of one indicates that the logical unit is
  1451. positioned between early-warning and end-of-partition in the current
  1452. partition.  An EOP bit of zero indicates that the current logical position is
  1453. not between early-warning and end-of-partition.
  1454.  
  1455. IMPLEMENTORS NOTE:  The BOP and EOP indications are not necessarily a result
  1456. of a physical tape marker (e.g., reflective marker).
  1457.  
  1458. A block position unknown (BPU) bit of one indicates that the first and last
  1459.  
  1460.  
  1461.  
  1462.  
  1463. SCSI-2 draft proposed American National Standard        9-24      Revision 10c24
  1464.  
  1465.  
  1466.  
  1467.  
  1468.  
  1469.  
  1470.  
  1471. Sequential-Access Devices                                               3/9/90
  1472.  
  1473. block locations are not known or cannot be obtained.  A BPU bit of zero
  1474. indicates that the first and last block location fields contain valid position
  1475. information.
  1476.  
  1477. The partition number field reports the partition number for the current
  1478. logical position.  If the logical unit only supports one partition for the
  1479. medium, this field shall be set to zero.
  1480.  
  1481. The first block location field indicates the block address associated with the
  1482. current logical position.  The value shall indicate the block address of the
  1483. next data block to be transferred between the initiator and the target if a
  1484. READ or WRITE command is issued.
  1485.  
  1486. The last block location field indicates the block address associated with the
  1487. next block to be transferred from the buffer to the medium.  The value shall
  1488. indicate the block address of the next data block to be transferred between
  1489. the buffer and the medium.  If the buffer does not contain a whole block of
  1490. data or is empty, the value reported for the last block location shall be
  1491. equal to the value reported for the first block location.
  1492.  
  1493. IMPLEMENTORS NOTE:  The information provided by the first and last block
  1494. location fields can be used in conjunction with the LOCATE command to position
  1495. the medium at the appropriate logical block on another device in the case of
  1496. unrecoverable errors on the first device.
  1497.  
  1498. The number of blocks in buffer field indicates the number of data blocks in
  1499. the target's buffer that have not been written to the medium.
  1500.  
  1501. The number of bytes in buffer field indicates the total number of data bytes
  1502. in the target's buffer that have not been written to the medium.
  1503.  
  1504. 9.2.7. READ REVERSE Command
  1505.  
  1506.  
  1507.  
  1508.  
  1509.  
  1510.  
  1511.  
  1512.  
  1513.  
  1514.  
  1515.  
  1516.  
  1517.  
  1518.  
  1519.  
  1520.  
  1521.  
  1522.  
  1523.  
  1524. SCSI-2 draft proposed American National Standard        9-25      Revision 10c25
  1525.  
  1526.  
  1527.  
  1528.  
  1529.  
  1530.  
  1531.  
  1532. Sequential-Access Devices                                               3/9/90
  1533.  
  1534.  
  1535.                        Table 9-10: READ REVERSE Command
  1536.  
  1537. ==============================================================================
  1538.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1539. Byte |        |        |        |        |        |        |        |        |
  1540. ==============================================================================
  1541.  0   |                           Operation Code (0Fh)                        |
  1542. -----|-----------------------------------------------------------------------|
  1543.  1   |   Logical Unit Number    |         Reserved         |  SILI  | Fixed  |
  1544. -----|-----------------------------------------------------------------------|
  1545.  2   | (MSB)                                                                 |
  1546. -----|---                                                                 ---|
  1547.  3   |                           Transfer Length                             |
  1548. -----|---                                                                 ---|
  1549.  4   |                                                                 (LSB) |
  1550. -----|-----------------------------------------------------------------------|
  1551.  5   |                           Control                                     |
  1552. ==============================================================================
  1553.  
  1554.  
  1555. The READ REVERSE command (Table 9-10) requests that the target transfer one or
  1556. more block(s) of data to the initiator beginning at the current position on
  1557. the logical unit.
  1558.  
  1559. The execution of this command is similar to the READ command except that
  1560. medium motion is in the reverse direction.  All block(s), and the byte(s)
  1561. within the block(s), are transferred in the reverse order.  The order of bits
  1562. within each byte shall not be changed.  Upon completion of a READ REVERSE
  1563. command, the logical position shall be before the last block transferred
  1564. (beginning-of-partition side).
  1565.  
  1566. Refer to the READ command (9.2.4) for a description of the fixed bit, the SILI
  1567. bit, the transfer length field, and any associated error conditions.
  1568.  
  1569. Filemarks, setmarks, incorrect length blocks, and unrecovered read errors are
  1570. handled the same as in the READ command, except that upon termination the
  1571. logical position shall be before the filemark, setmark, incorrect length
  1572. block, or unrecovered block (beginning-of-partition side).
  1573.  
  1574. If the logical unit encounters beginning-of-partition during a READ REVERSE
  1575. command, CHECK CONDITION status shall be returned and the EOM and valid bits
  1576. shall be set to one in the sense data.  The sense key shall be set to NO SENSE
  1577. or RECOVERED ERROR, as appropriate.  If the fixed bit is one, the information
  1578. field shall be set to the requested transfer length minus the actual number of
  1579. blocks transferred.  If the fixed bit is zero, the information field shall be
  1580. set to the requested transfer length.
  1581.  
  1582.  
  1583. 9.2.8. RECOVER BUFFERED DATA Command
  1584.  
  1585. SCSI-2 draft proposed American National Standard        9-26      Revision 10c26
  1586.  
  1587.  
  1588.  
  1589.  
  1590.  
  1591.  
  1592.  
  1593. Sequential-Access Devices                                               3/9/90
  1594.  
  1595.  
  1596.                   Table 9-11: RECOVER BUFFERED DATA Command
  1597.  
  1598. ==============================================================================
  1599.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1600. Byte |        |        |        |        |        |        |        |        |
  1601. ==============================================================================
  1602.  0   |                           Operation Code (14h)                        |
  1603. -----|-----------------------------------------------------------------------|
  1604.  1   |   Logical Unit Number    |         Reserved         |  SILI  | Fixed  |
  1605. -----|-----------------------------------------------------------------------|
  1606.  2   | (MSB)                                                                 |
  1607. -----|---                                                                 ---|
  1608.  3   |                           Transfer Length                             |
  1609. -----|---                                                                 ---|
  1610.  4   |                                                                 (LSB) |
  1611. -----|-----------------------------------------------------------------------|
  1612.  5   |                           Control                                     |
  1613. ==============================================================================
  1614.  
  1615.  
  1616. The RECOVER BUFFERED DATA command (Table 9-11) is used to recover data that
  1617. has been transferred to the target's buffer but has not been successfully
  1618. written to the medium.  It is normally used to recover from error or exception
  1619. conditions that make it impossible to write the buffered data to the medium.
  1620. One or more RECOVER BUFFERED DATA commands may be required to recover all
  1621. unwritten buffered data.
  1622.  
  1623. The execution of this command is similar to the READ command except that the
  1624. data is transferred from the target's buffer instead of the medium.  The order
  1625. in which block(s) are transferred is defined by the RBO bit in the device
  1626. configuration page (9.3.3.1).  If the RBO bit is not implemented, block(s) are
  1627. transferred in the same order they would have been transferred to the medium.
  1628.  
  1629. Refer to the READ command (9.2.4) for a description of the fixed bit, the SILI
  1630. bit, the transfer length field, and any associated error conditions.
  1631.  
  1632. If the fixed bit is zero, no more than the requested transfer length shall be
  1633. transferred to the initiator.  If the requested transfer length is smaller
  1634. than the actual length of the logical block to be recovered, only the
  1635. requested transfer length shall be transferred to the initiator and the
  1636. remaining data for the current logical block shall be discarded.
  1637.  
  1638. IMPLEMENTORS NOTE:  During recovery operations involving unknown block sizes,
  1639. the initiator should select the maximum block length supported by the target
  1640. to ensure that all buffered data will be transferred.
  1641.  
  1642. If a buffered filemark is encountered during a RECOVER BUFFERED DATA command,
  1643.  
  1644.  
  1645.  
  1646. SCSI-2 draft proposed American National Standard        9-27      Revision 10c27
  1647.  
  1648.  
  1649.  
  1650.  
  1651.  
  1652.  
  1653.  
  1654. Sequential-Access Devices                                               3/9/90
  1655.  
  1656. CHECK CONDITION status shall be returned, the sense key shall be set to NO
  1657. SENSE, and the filemark and valid bits shall be set to one in the sense data.
  1658. Upon termination, the logical position shall be after the filemark.  If the
  1659. fixed bit is one, the information field shall be set to the requested transfer
  1660. length minus the actual number of blocks transferred (not including the
  1661. filemark).  If the fixed bit is zero, the information field shall be set to
  1662. the requested transfer length.
  1663.  
  1664. If a buffered setmark is encountered during a RECOVER BUFFERED DATA command
  1665. and the RSmk bit is set to one in the device configuration page (9.3.3.1),
  1666. CHECK CONDITION status shall be returned and the filemark and valid bits shall
  1667. be set to one in the sense data.  The sense key shall be set to NO SENSE and
  1668. the additional sense code shall be set to SETMARK DETECTED.  Upon termination,
  1669. the logical position shall be after the setmark.  If the fixed bit is one, the
  1670. information field shall be set to the requested transfer length minus the
  1671. actual number of blocks transferred (not including the setmark).  If the fixed
  1672. bit is zero, the information field shall be set to the requested transfer
  1673. length. The target shall not return CHECK CONDITION when a setmark is
  1674. encountered if the RSmk bit is zero or if this option is not supported.
  1675.  
  1676. If an attempt is made to recover more logical blocks of data than are
  1677. contained in the target's buffer, CHECK CONDITION status shall be returned,
  1678. the sense key shall be set to NO SENSE, and the EOM and valid bits shall be
  1679. set to one in the sense data.  If the fixed bit is one, the information field
  1680. shall be set to the requested transfer length minus the actual number of
  1681. blocks transferred.  If the fixed bit is zero, the information field shall be
  1682. set to the requested transfer length.
  1683.  
  1684. 9.2.9. RELEASE UNIT Command
  1685.  
  1686.  
  1687.  
  1688.  
  1689.  
  1690.  
  1691.  
  1692.  
  1693.  
  1694.  
  1695.  
  1696.  
  1697.  
  1698.  
  1699.  
  1700.  
  1701.  
  1702.  
  1703.  
  1704.  
  1705.  
  1706.  
  1707. SCSI-2 draft proposed American National Standard        9-28      Revision 10c28
  1708.  
  1709.  
  1710.  
  1711.  
  1712.  
  1713.  
  1714.  
  1715. Sequential-Access Devices                                               3/9/90
  1716.  
  1717.  
  1718.                        Table 9-12: RELEASE UNIT Command
  1719.  
  1720. ==============================================================================
  1721.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1722. Byte |        |        |        |        |        |        |        |        |
  1723. ==============================================================================
  1724.  0   |                           Operation Code (17h)                        |
  1725. -----|-----------------------------------------------------------------------|
  1726.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    |Reserved|
  1727. -----|-----------------------------------------------------------------------|
  1728.  2   |                           Reserved                                    |
  1729. -----|-----------------------------------------------------------------------|
  1730.  3   |                           Reserved                                    |
  1731. -----|-----------------------------------------------------------------------|
  1732.  4   |                           Reserved                                    |
  1733. -----|-----------------------------------------------------------------------|
  1734.  5   |                           Control                                     |
  1735. ==============================================================================
  1736.  
  1737.  
  1738. The RESERVE UNIT and RELEASE UNIT commands provide the basic mechanism for
  1739. contention resolution in multiple-initiator systems.  The RELEASE UNIT command
  1740. (Table 9-12) is used to release previously reserved logical units for the
  1741. requesting initiator, or if it is a third-party release, to another specified
  1742. SCSI device.
  1743.  
  1744. If a valid reservation exists for the I_T_L nexus, the target shall release
  1745. the reservation and return GOOD status.
  1746.  
  1747. It is not an error to attempt to release a reservation that is not currently
  1748. valid.  In this case, the target shall return GOOD status without altering any
  1749. other reservation.
  1750.  
  1751. 9.2.9.1. Third-Party Release
  1752. Third-party release allows an initiator to release a logical unit that was
  1753. previously reserved using a third-party reservation (see 9.2.10.1).
  1754.  
  1755. If the third party (3rdPty) bit is zero, then a third-party release is not
  1756. requested.  If the 3rdPty bit is one, and if the reservation was made using a
  1757. third-party reservation by the initiator that is requesting the release for
  1758. the same SCSI device as specified in the third-party device ID, then the
  1759. target shall release the reservation.
  1760.  
  1761. If the 3rdPty bit is one, the target shall not modify the mode parameters for
  1762. commands received from the third-party device even if the target implements
  1763. the transfer of mode parameters with a third-party RESERVE UNIT command.
  1764.  
  1765. IMPLEMENTORS NOTE:  When a target implements independent storage of mode
  1766.  
  1767.  
  1768. SCSI-2 draft proposed American National Standard        9-29      Revision 10c29
  1769.  
  1770.  
  1771.  
  1772.  
  1773.  
  1774.  
  1775.  
  1776. Sequential-Access Devices                                               3/9/90
  1777.  
  1778. parameters for each initiator, a third-party RESERVE UNIT command effects a
  1779. transfer of the current mode parameters.  Those set up by the initiator of the
  1780. RESERVE UNIT are to be set as the mode parameters used for commands from the
  1781. third-party device (usually a copy master device).  A unit attention condition
  1782. notifies the third-party device of the changed mode parameters.  A successful
  1783. third-party RELEASE UNIT command leaves the transferred parameters intact.
  1784. The third-party device can issue MODE SENSE and MODE SELECT commands to query
  1785. and modify the mode parameters.
  1786.  
  1787.  
  1788.  
  1789. 9.2.10. RESERVE UNIT Command
  1790.  
  1791.                        Table 9-13: RESERVE UNIT Command
  1792.  
  1793. ==============================================================================
  1794.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1795. Byte |        |        |        |        |        |        |        |        |
  1796. ==============================================================================
  1797.  0   |                           Operation Code (16h)                        |
  1798. -----|-----------------------------------------------------------------------|
  1799.  1   | Logical Unit Number      | 3rdPty | Third Party Device ID    |Reserved|
  1800. -----|-----------------------------------------------------------------------|
  1801.  2   |                           Reserved                                    |
  1802. -----|-----------------------------------------------------------------------|
  1803.  3   |                           Reserved                                    |
  1804. -----|-----------------------------------------------------------------------|
  1805.  4   |                           Reserved                                    |
  1806. -----|-----------------------------------------------------------------------|
  1807.  5   |                           Control                                     |
  1808. ==============================================================================
  1809.  
  1810.  
  1811. The RESERVE UNIT and RELEASE UNIT commands provide the basic mechanism for
  1812. contention resolution in multiple-initiator systems.  The RESERVE UNIT command
  1813. (Table 9-13) is used to reserve logical units for the exclusive use of the
  1814. requesting initiator, or if it is a third-party reservation, to another
  1815. specified SCSI device.
  1816.  
  1817. This command requests that the entire logical unit be reserved for the
  1818. exclusive use of the initiator until the reservation is superseded by another
  1819. valid RESERVE UNIT command from the initiator that made the reservation or
  1820. until released by a RELEASE UNIT command from the same initiator that made the
  1821. reservation, by a BUS DEVICE RESET message from any initiator, by a hard reset
  1822. condition, or by a power on cycle.  The reservation shall not be granted if
  1823. the logical unit is reserved by another initiator.  It shall be permissible
  1824. for an initiator to reserve a logical unit that is currently reserved by that
  1825. initiator.
  1826.  
  1827. If the logical unit is reserved for another initiator, the target shall return
  1828.  
  1829. SCSI-2 draft proposed American National Standard        9-30      Revision 10c30
  1830.  
  1831.  
  1832.  
  1833.  
  1834.  
  1835.  
  1836.  
  1837. Sequential-Access Devices                                               3/9/90
  1838.  
  1839. RESERVATION CONFLICT status.
  1840.  
  1841. If, after honoring the reservation, any other initiator attempts to perform
  1842. any command on the reserved logical unit other than an INQUIRY, REQUEST SENSE,
  1843. ALLOW MEDIUM REMOVAL, RESERVE, or a RELEASE UNIT command, the command shall be
  1844. rejected with RESERVATION CONFLICT status.
  1845.  
  1846.  
  1847. 9.2.10.1. Third-Party Reservation
  1848. Third-party reservation allows an initiator to reserve a logical unit for
  1849. another SCSI device.  This is intended for use in multiple-initiator systems
  1850. that use the COPY command.
  1851.  
  1852. If the third-party (3rdPty) bit is zero, a third-party reservation is not
  1853. requested.  If the 3rdPty bit is one the target shall reserve the logical unit
  1854. for the SCSI device specified in the third-party device ID field. The target
  1855. shall preserve the reservation until it is superseded by another valid RESERVE
  1856. UNIT command from the initiator that made the reservation or until it is
  1857. released by the same initiator, by a BUS DEVICE RESET message from any
  1858. initiator, or a hard reset condition.  The target shall ignore any attempt to
  1859. release the reservation made by any other initiator.
  1860.  
  1861. If independent sets of parameters are implemented, a third party reservation
  1862. shall cause the target to transfer the set of parameters in effect for the
  1863. initiator of the RESERVE command to the parameters used for commands from the
  1864. third party device.  Any subsequent command issued by the third-party device
  1865. is executed according to the mode parameters in effect for the initiator that
  1866. sent the RESERVE command.
  1867.  
  1868. If independent sets of parameters are implemented, a third party reservation
  1869. shall cause the target to transfer the set of parameters in effect for the
  1870. initiator of the RESERVE command to the parameters used for commands from the
  1871. third party device.  Any subsequent command issued by the third-party device
  1872. is executed according to the mode parameters in effect for the initiator that
  1873. sent the RESERVE command.
  1874.  
  1875. IMPLEMENTORS NOTE:  This transfer of the mode parameters is applicable to
  1876. target devices which store mode information independently for different
  1877. initiators.  This mechanism allows an initiator to set the mode parameters of
  1878. a target for the use of a copy master (i.e., the third-party device).  The
  1879. third-party copy master may subsequently issue a MODE SELECT command to modify
  1880. the mode parameters.
  1881.  
  1882. 9.2.10.2. Superseding Reservations
  1883.  
  1884.  
  1885.  
  1886.  
  1887.  
  1888.  
  1889.  
  1890. SCSI-2 draft proposed American National Standard        9-31      Revision 10c31
  1891.  
  1892.  
  1893.  
  1894.  
  1895.  
  1896.  
  1897.  
  1898. Sequential-Access Devices                                               3/9/90
  1899.  
  1900. An initiator that currently has a logical unit reserved may modify the current
  1901. reservation by issuing another RESERVE UNIT command to the same logical unit.
  1902. The superseding reservation shall release the current reservation if the
  1903. superseding reservation request is granted.  The current reservation shall not
  1904. be modified if the superseding reservation request cannot be granted.  If the
  1905. superseding reservation cannot be granted because of conflicts with a previous
  1906. reservation (other than the current reservation), then the target shall return
  1907. RESERVATION CONFLICT status.
  1908.  
  1909. IMPLEMENTORS NOTE:  Superseding reservations allow the SCSI device ID to be
  1910. changed on a reservation using the third-party reservation option.  This
  1911. capability is necessary for certain situations when using COMPARE, COPY, and
  1912. COPY AND VERIFY commands.
  1913.  
  1914. 9.2.11. REWIND Command
  1915.  
  1916.                           Table 9-14: REWIND Command
  1917.  
  1918. ==============================================================================
  1919.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1920. Byte |        |        |        |        |        |        |        |        |
  1921. ==============================================================================
  1922.  0   |                           Operation Code (01h)                        |
  1923. -----|-----------------------------------------------------------------------|
  1924.  1   |   Logical Unit Number    |              Reserved             | Immed  |
  1925. -----|-----------------------------------------------------------------------|
  1926.  2   |                           Reserved                                    |
  1927. -----|-----------------------------------------------------------------------|
  1928.  3   |                           Reserved                                    |
  1929. -----|-----------------------------------------------------------------------|
  1930.  4   |                           Reserved                                    |
  1931. -----|-----------------------------------------------------------------------|
  1932.  5   |                           Control                                     |
  1933. ==============================================================================
  1934.  
  1935.  
  1936. The REWIND command (Table 9-14) causes the target to position the logical unit
  1937. to the beginning-of-partition in the current partition.  Prior to performing
  1938. the rewind operation, the target shall ensure that all buffered data,
  1939. filemarks, and setmarks have been transferred to the medium.
  1940.  
  1941. An immediate (Immed) bit of zero indicates that the target shall not return
  1942. status until the rewind operation has completed.  An Immed bit of one
  1943. indicates that the target shall return status as soon as all buffered commands
  1944. have completed execution and the command descriptor block of the REWIND
  1945. command has been validated.  If CHECK CONDITION status is returned for a
  1946. REWIND command with an Immed bit of one, the rewind operation shall not be
  1947. performed.
  1948.  
  1949. IMPLEMENTORS NOTE:  For compatibility with devices implemented prior to this
  1950.  
  1951. SCSI-2 draft proposed American National Standard        9-32      Revision 10c32
  1952.  
  1953.  
  1954.  
  1955.  
  1956.  
  1957.  
  1958.  
  1959. Sequential-Access Devices                                               3/9/90
  1960.  
  1961. standard, it is suggested that a WRITE FILEMARKS command with an Immed bit of
  1962. zero be used to ensure that all buffered data, filemarks, or setmarks have
  1963. been transferred to the medium before issuing a REWIND command with an Immed
  1964. bit of one.
  1965.  
  1966. When operating in buffered mode 1h or 2h (see 9.3.3), the target shall discard
  1967. any unwritten buffered data after the REWIND command is validated if the
  1968. previous command was terminated with CHECK CONDITION status and the device is
  1969. unable to continue successfully writing.
  1970.  
  1971. 9.2.12. SPACE Command
  1972.  
  1973.                           Table 9-15: SPACE Command
  1974.  
  1975. ==============================================================================
  1976.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  1977. Byte |        |        |        |        |        |        |        |        |
  1978. ==============================================================================
  1979.  0   |                           Operation  (11h)                            |
  1980. -----|-----------------------------------------------------------------------|
  1981.  1   |   Logical Unit Number    |     Reserved    |           Code           |
  1982. -----|-----------------------------------------------------------------------|
  1983.  2   | (MSB)                                                                 |
  1984. -----|---                                                                 ---|
  1985.  3   |                           Count                                       |
  1986. -----|---                                                                 ---|
  1987.  4   |                                                                 (LSB) |
  1988. -----|-----------------------------------------------------------------------|
  1989.  5   |                           Control                                     |
  1990. ==============================================================================
  1991.  
  1992.  
  1993. The SPACE command (Table 9-15) provides a variety of positioning functions
  1994. that are determined by the code and count.  Both forward and reverse
  1995. positioning are provided, although some targets may only support a subset of
  1996. this command.  If an initiator requests an unsupported function, the command
  1997. shall be terminated with CHECK CONDITION status and the sense key shall be set
  1998. to ILLEGAL REQUEST.
  1999.  
  2000. The code is defined as follows:
  2001.  
  2002.  
  2003.  
  2004.  
  2005.  
  2006.  
  2007.  
  2008.  
  2009.  
  2010.  
  2011.  
  2012. SCSI-2 draft proposed American National Standard        9-33      Revision 10c33
  2013.  
  2014.  
  2015.  
  2016.  
  2017.  
  2018.  
  2019.  
  2020. Sequential-Access Devices                                               3/9/90
  2021.  
  2022.  
  2023.                    Code         Description          Support
  2024.                  ---------  --------------------    ---------
  2025.                    000b     Blocks                  Mandatory
  2026.                    001b     Filemarks               Mandatory
  2027.                    010b     Sequential Filemarks    Optional
  2028.                    011b     End-of-Data             Optional
  2029.                    100b     Setmarks                Optional
  2030.                    101b     Sequential Setmarks     Optional
  2031.                  110b-111b  Reserved
  2032.  
  2033. When spacing over blocks, filemarks, or setmarks, the count field specifies
  2034. the number of blocks, filemarks, or setmarks to be spaced over in the current
  2035. partition.  A positive value N in the count field shall cause forward
  2036. positioning (toward end-of-partition) over N blocks, filemarks, or setmarks
  2037. ending on the end-of-partition side of the last block, filemark, or setmark.
  2038. A zero value in the count field shall cause no change of logical position.  A
  2039. negative value -N (two's complement notation) in the count field shall cause
  2040. reverse positioning (toward beginning-of-partition) over N blocks, filemarks,
  2041. or setmarks ending on the beginning-of-partition side of the last block,
  2042. filemark, or setmark.  Support of spacing in the reverse direction is
  2043. optional.
  2044.  
  2045. If a filemark is encountered while spacing over blocks, the command shall be
  2046. terminated.  The logical position shall be on the end-of-partition side of the
  2047. filemark if movement was in the forward direction and on the beginning-of-
  2048. partition side of the filemark if movement was in the reverse direction.
  2049. CHECK CONDITION status shall be returned to the initiator, the sense key shall
  2050. be set to NO SENSE, and the filemark and valid bits shall be set to one in the
  2051. sense data.  The information field shall be set to the requested count minus
  2052. the actual number of blocks spaced over (not including the filemark).
  2053.  
  2054. If a setmark is encountered while spacing over blocks or filemarks and the
  2055. RSmk bit is set to one in the device configuration page (9.3.3.1), the command
  2056. shall be terminated, CHECK CONDITION status shall be returned to the
  2057. initiator, and the filemark and valid bits shall be set to one in the sense
  2058. data.  The sense key shall be set to NO SENSE and the additional sense code
  2059. shall be set to SETMARK DETECTED.  The information field shall be set to the
  2060. requested count minus the actual number of blocks or filemarks spaced over
  2061. (not including the setmark).  The logical position shall be on the end-of-
  2062. partition side of the setmark if movement was in the forward direction and on
  2063. the beginning-of-partition side of the setmark if movement was in the reverse
  2064. direction.  The target shall not return CHECK CONDITION status when a setmark
  2065. is encountered if the RSmk bit is set to zero or if this option is not
  2066. supported.
  2067.  
  2068. If early-warning is encountered while spacing over blocks, filemarks, or
  2069.  
  2070.  
  2071.  
  2072.  
  2073. SCSI-2 draft proposed American National Standard        9-34      Revision 10c34
  2074.  
  2075.  
  2076.  
  2077.  
  2078.  
  2079.  
  2080.  
  2081. Sequential-Access Devices                                               3/9/90
  2082.  
  2083. setmarks and the REW bit is set to one in the device configuration page
  2084. (9.3.3.1), CHECK CONDITION status shall be returned, the sense key shall be
  2085. set to NO SENSE, and the EOM and valid bits shall be set to one in the sense
  2086. data.  The information field shall be set to the requested count minus the
  2087. actual number of blocks, filemarks, or setmarks spaced over as defined by the
  2088. code value.  If the REW bit is zero or the option is not supported by the
  2089. target, the target shall not report CHECK CONDITION status at the early-
  2090. warning point.
  2091.  
  2092. IMPLEMENTORS NOTE:  Setting the REW bit is not recommended for most system
  2093. applications since data may be present after early-warning.
  2094.  
  2095. If end-of-data is encountered while spacing over blocks, filemarks, or
  2096. setmarks, CHECK CONDITION status shall be returned, the sense key shall be set
  2097. to BLANK CHECK, and the valid bit shall be set to one in the sense data.
  2098. Additionally, the EOM bit shall be set to one if end-of-data is encountered at
  2099. or after early-warning.  The information field shall be set to the requested
  2100. count minus the actual number of blocks, filemarks, or setmarks spaced over as
  2101. defined by the code value.
  2102.  
  2103. If the end-of-partition is encountered while spacing forward over blocks,
  2104. filemarks, or setmarks, CHECK CONDITION status shall be returned, the sense
  2105. key shall be set to MEDIUM ERROR, the EOM bit shall be set to one, and the
  2106. valid bit shall be set to one.  The information field shall be set to the
  2107. requested count minus the actual number of blocks, filemarks, or setmarks
  2108. spaced over as defined by the code value.
  2109.  
  2110. If beginning-of-partition is encountered while spacing over blocks, filemarks,
  2111. or setmarks in the reverse direction, the target shall return CHECK CONDITION
  2112. status and shall set the sense key to NO SENSE.  The EOM and valid bits shall
  2113. be set to one, and the information field set to the total number of blocks,
  2114. filemarks, or setmarks not spaced over (the requested number of blocks,
  2115. filemarks, or setmarks minus the actual number of blocks, filemarks, or
  2116. setmarks spaced over).
  2117.  
  2118. When spacing over sequential filemarks (or setmarks), the count field is
  2119. interpreted as follows:
  2120. (1) A positive value N shall cause forward movement to the first occurrence of
  2121. N or more consecutive filemarks (or setmarks) being logically positioned after
  2122. the Nth filemark (or setmark).
  2123. (2) A zero value shall cause no change in the logical position.
  2124. (3) A negative value -N (2's complement notation) shall cause reverse movement
  2125. to the first occurrence of N or more consecutive filemarks (or setmarks) being
  2126. logically positioned on the beginning-of-partition side of the Nth filemark
  2127. (or setmark).
  2128.  
  2129. If a setmark is encountered while spacing to sequential filemarks and the RSmk
  2130.  
  2131.  
  2132.  
  2133.  
  2134. SCSI-2 draft proposed American National Standard        9-35      Revision 10c35
  2135.  
  2136.  
  2137.  
  2138.  
  2139.  
  2140.  
  2141.  
  2142. Sequential-Access Devices                                               3/9/90
  2143.  
  2144. bit is set to one in the device configuration page (9.3.3.1), CHECK CONDITION
  2145. status shall be returned, the filemark bit shall be set to one, and the valid
  2146. bit shall be set to zero.  The sense key shall be set to NO SENSE and the
  2147. additional sense code shall be set to SETMARK DETECTED.  The target shall not
  2148. return CHECK CONDITION status when a setmark is encountered if the RSmk bit is
  2149. set to zero or if this option is not supported.
  2150.  
  2151. If end-of-partition is encountered while spacing to sequential filemarks or
  2152. setmarks, CHECK CONDITION status shall be returned, the sense key shall be set
  2153. to MEDIUM ERROR, the EOM bit shall be set to one, and the valid bit shall be
  2154. set to zero.
  2155.  
  2156. If end-of-data is encountered while spacing to sequential filemarks or
  2157. setmarks, CHECK CONDITION status shall be returned, the sense key shall be set
  2158. to BLANK CHECK, and the valid bit shall be set to zero.  Additionally, the EOM
  2159. bit shall be set to one if end-of-data is encountered at or after early-
  2160. warning.
  2161.  
  2162. When spacing to end-of-data, the count field is ignored.  Upon successful
  2163. completion, the medium shall be positioned such that a subsequent write
  2164. operation would append to the last logically recorded information.
  2165.  
  2166. If end-of-partition is encountered while spacing to end-of-data, CHECK
  2167. CONDITION status shall be returned, the sense key shall be set to MEDIUM
  2168. ERROR, the EOM bit shall be set to one, and the valid bit shall be set to
  2169. zero.
  2170.  
  2171. 9.2.13. VERIFY Command
  2172.  
  2173.  
  2174.  
  2175.  
  2176.  
  2177.  
  2178.  
  2179.  
  2180.  
  2181.  
  2182.  
  2183.  
  2184.  
  2185.  
  2186.  
  2187.  
  2188.  
  2189.  
  2190.  
  2191.  
  2192.  
  2193.  
  2194.  
  2195. SCSI-2 draft proposed American National Standard        9-36      Revision 10c36
  2196.  
  2197.  
  2198.  
  2199.  
  2200.  
  2201.  
  2202.  
  2203. Sequential-Access Devices                                               3/9/90
  2204.  
  2205.  
  2206.                           Table 9-16: VERIFY Command
  2207.  
  2208. ==============================================================================
  2209.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2210. Byte |        |        |        |        |        |        |        |        |
  2211. ==============================================================================
  2212.  0   |                           Operation Code (13h)                        |
  2213. -----|-----------------------------------------------------------------------|
  2214.  1   |   Logical Unit Number    |    Reserved     | Immed  | BytCmp | Fixed  |
  2215. -----|-----------------------------------------------------------------------|
  2216.  2   | (MSB)                                                                 |
  2217. -----|---                                                                 ---|
  2218.  3   |                           Verification Length                         |
  2219. -----|---                                                                 ---|
  2220.  4   |                                                                 (LSB) |
  2221. -----|-----------------------------------------------------------------------|
  2222.  5   |                           Control                                     |
  2223. ==============================================================================
  2224.  
  2225.  
  2226. The VERIFY command (Table 9-16) requests that the target verify one or more
  2227. block(s) beginning with the next block on the logical unit.
  2228.  
  2229. An immediate (Immed) bit of zero indicates that the command shall not return
  2230. status until the verify operation has completed.  An Immed bit of one
  2231. indicates that status shall be returned as soon as the command descriptor
  2232. block has been validated (but after the data transfer from the initiator, if
  2233. the BytCmp bit is one).
  2234.  
  2235. IMPLEMENTORS NOTE: In order to ensure that no errors are lost, the initiator
  2236. should set the Immed bit to zero on the last VERIFY command when issuing a
  2237. series of VERIFY commands.
  2238.  
  2239. A byte compare (BytCmp) bit of zero indicates that the verification shall be
  2240. simply a medium verification (e.g., CRC, ECC).  No data shall be transferred
  2241. between the initiator and target.
  2242.  
  2243. A BytCmp bit of one indicates that the target shall perform a byte-by-byte
  2244. compare of the data on the medium and the data transferred from the initiator
  2245. during the DATA OUT phase of the VERIFY command.  Data shall be transferred
  2246. from the initiator to the target as in a WRITE command.  If the BytCmp bit is
  2247. one and the byte compare option is not supported, the target shall terminate
  2248. the command with CHECK CONDITION status and the sense key shall be set to
  2249. ILLEGAL REQUEST.
  2250.  
  2251. The verification length specifies the amount of data to verify, in blocks or
  2252.  
  2253.  
  2254.  
  2255.  
  2256. SCSI-2 draft proposed American National Standard        9-37      Revision 10c37
  2257.  
  2258.  
  2259.  
  2260.  
  2261.  
  2262.  
  2263.  
  2264. Sequential-Access Devices                                               3/9/90
  2265.  
  2266. bytes, as indicated by the fixed bit. Refer to the READ command (9.2.4) for a
  2267. description of the fixed bit and any associated error conditions. When the
  2268. verification length is zero, no data shall be verified and the current logical
  2269. position shall not be changed.  This condition shall not be considered as an
  2270. error.
  2271.  
  2272. The VERIFY command shall terminate when the verification length has been
  2273. satisfied, when an incorrect length block is encountered, when a filemark is
  2274. encountered, when a setmark is encountered (if the RSmk bit is one in the
  2275. device configuration page, 9.3.3.1), when end-of-data is encountered, when the
  2276. end-of-partition is encountered, when early-warning is encountered (if the REW
  2277. bit is one in the device configuration page, 9.3.3.1), or when an
  2278. unrecoverable read error is encountered.  The status and sense data for each
  2279. of these conditions are handled in the same manner as in the READ command
  2280. (9.2.4).  Upon successful completion of a VERIFY command, the logical position
  2281. shall be after the last block verified.
  2282.  
  2283. If the data does not compare (BytCmp bit of one), the command shall terminate
  2284. with CHECK CONDITION status, the valid bit shall be set to one, and the sense
  2285. key shall be set to MISCOMPARE.  If the fixed bit is one, the information
  2286. field shall be set to the requested verification length minus the actual
  2287. number of blocks successfully verified.  If the fixed bit is zero, the
  2288. information field shall be set to the requested verification length minus the
  2289. actual number of bytes successfully verified.  This number may be larger than
  2290. the requested verification length if the error occurred on a previous VERIFY
  2291. command with an Immed bit of one.  Upon termination, the medium shall be
  2292. positioned after the block containing the miscompare (end-of-partition side).
  2293.  
  2294.  
  2295. 9.2.14. WRITE Command
  2296.  
  2297.  
  2298.  
  2299.  
  2300.  
  2301.  
  2302.  
  2303.  
  2304.  
  2305.  
  2306.  
  2307.  
  2308.  
  2309.  
  2310.  
  2311.  
  2312.  
  2313.  
  2314.  
  2315.  
  2316.  
  2317. SCSI-2 draft proposed American National Standard        9-38      Revision 10c38
  2318.  
  2319.  
  2320.  
  2321.  
  2322.  
  2323.  
  2324.  
  2325. Sequential-Access Devices                                               3/9/90
  2326.  
  2327.  
  2328.                           Table 9-17: WRITE Command
  2329.  
  2330. ==============================================================================
  2331.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2332. Byte |        |        |        |        |        |        |        |        |
  2333. ==============================================================================
  2334.  0   |                           Operation Code (0Ah)                        |
  2335. -----|-----------------------------------------------------------------------|
  2336.  1   |   Logical Unit Number    |              Reserved             | Fixed  |
  2337. -----|-----------------------------------------------------------------------|
  2338.  2   | (MSB)                                                                 |
  2339. -----|---                                                                 ---|
  2340.  3   |                           Transfer Length                             |
  2341. -----|---                                                                 ---|
  2342.  4   |                                                                 (LSB) |
  2343. -----|-----------------------------------------------------------------------|
  2344.  5   |                           Control                                     |
  2345. ==============================================================================
  2346.  
  2347.  
  2348. The WRITE command (Table 9-17) requests that the target write the data that is
  2349. transferred from the initiator to the current position on the logical unit.
  2350.  
  2351. The fixed bit specifies whether fixed-length or variable-length blocks are to
  2352. be transferred.  See the READ BLOCK LIMITS command (9.2.5) for additional
  2353. information about fixed and variable block mode.
  2354.  
  2355. If the fixed bit is one, the transfer length specifies the number of fixed-
  2356. length blocks to be transferred, using the current block length reported in
  2357. the mode parameter block descriptor (7.3.3).  If the fixed bit is zero, a
  2358. single block is transferred with the transfer length specifying the block
  2359. length in bytes.
  2360.  
  2361. If the transfer length is zero, no data shall be transferred and the current
  2362. position on the logical unit shall not be changed.  This condition shall not
  2363. be considered an error.
  2364.  
  2365. A WRITE command may be buffered or unbuffered, as indicated by the buffered
  2366. mode field of the mode parameter header (9.3.3).  For unbuffered operation
  2367. (buffered mode 0h), the target shall not return GOOD status until all data
  2368. block(s) are successfully written to the medium.  For buffered operation
  2369. (buffered mode 1h or 2h), the target may return GOOD status as soon as all
  2370. data block(s) are successfully transferred to the target's buffer.
  2371.  
  2372. IMPLEMENTORS NOTE:  For compatibility with devices implemented prior to this
  2373.  
  2374.  
  2375.  
  2376.  
  2377.  
  2378. SCSI-2 draft proposed American National Standard        9-39      Revision 10c39
  2379.  
  2380.  
  2381.  
  2382.  
  2383.  
  2384.  
  2385.  
  2386. Sequential-Access Devices                                               3/9/90
  2387.  
  2388. version of the standard, a WRITE FILEMARKS command with the Immed bit set to
  2389. zero should be issued when completing a buffered write operation to ensure
  2390. that all buffered data, filemarks, and setmarks are written to the medium.
  2391.  
  2392. If the logical unit encounters early-warning during a WRITE command, an
  2393. attempt to finish writing any data may be made, as determined by the current
  2394. settings of the REW and SEW bits in the device configuration page (9.3.3.1).
  2395. The command shall terminate with CHECK CONDITION status and the EOM and valid
  2396. bits shall be set to one in the sense data.  If all data that is to be written
  2397. is successfully transferred to the medium, the sense key shall be set to NO
  2398. SENSE or RECOVERED ERROR, as appropriate.  If any data that is to be written
  2399. cannot be transferred to the medium when early-warning is encountered, the
  2400. sense key shall be set to VOLUME OVERFLOW.
  2401.  
  2402. The information field shall be defined as follows:
  2403. (1)  If unbuffered mode is reported in the mode parameter header and the fixed
  2404. bit is set to one, the information field shall be set to the requested
  2405. transfer length minus the actual number of blocks written.
  2406. (2)  If unbuffered mode is reported and the fixed bit is set to zero, the
  2407. information field shall be set to the requested transfer length.
  2408. (3)  If buffered mode is reported in the mode parameter header and the fixed
  2409. bit is set to one, the information field shall be set to the total number of
  2410. blocks, filemarks, and setmarks not written (the number of blocks not
  2411. transferred from the initiator plus the number of blocks, filemarks, and
  2412. setmarks remaining in the target's buffer).  Note that the value in the
  2413. information field may exceed the transfer length.
  2414. (4)  If buffered mode is reported and the fixed bit is set to zero, the
  2415. information field shall be set to the total number of bytes, filemarks, and
  2416. setmarks not written (the number of bytes not transferred from the initiator
  2417. plus the number of bytes, filemarks, and setmarks remaining in the target's
  2418. buffer).  Note that the value in the information field may exceed the transfer
  2419. length.
  2420.  
  2421. IMPLEMENTORS NOTE:  The target should ensure that some additional data can be
  2422. written to the medium (e.g., labels, filemarks, or setmarks) after the first
  2423. early-warning indication has been returned to the initiator.
  2424.  
  2425. If a WRITE command is received while the logical unit is positioned between
  2426. early-warning and end-of-partition, the target shall return CHECK CONDITION
  2427. status after attempting to perform the command.  The EOM and valid bits shall
  2428. be set to one in the sense data.  If all data that is to be written is
  2429. successfully transferred to the medium, the information field shall be set to
  2430. zero.  If any data that is to be written is not transferred to the medium
  2431. prior to encountering end-of-partition, the sense key shall be set to VOLUME
  2432. OVERFLOW and the information field shall be defined as follows:
  2433. (1)  If the fixed bit is one, the information field shall be set to the
  2434.  
  2435.  
  2436.  
  2437.  
  2438.  
  2439. SCSI-2 draft proposed American National Standard        9-40      Revision 10c40
  2440.  
  2441.  
  2442.  
  2443.  
  2444.  
  2445.  
  2446.  
  2447. Sequential-Access Devices                                               3/9/90
  2448.  
  2449. requested transfer length minus the actual number of blocks written to the
  2450. medium.
  2451. (2)  If the fixed bit is zero, the information field shall be set to the
  2452. requested transfer length.
  2453.  
  2454. IMPLEMENTORS NOTE:  In some systems it is important to recognize an error if
  2455. end-of-partition is encountered during execution of a WRITE command, without
  2456. regard for whether all data that is to be written is successfully transferred
  2457. to the medium.  By its definition, the VOLUME OVERFLOW sense key may always
  2458. validly be returned if end-of-partition is encountered while writing, and such
  2459. usage is recommended.  Reporting the MEDIUM ERROR sense key, as was done in
  2460. some SCSI-1 implementations, may cause confusion as to whether there was
  2461. really defective medium encountered during execution of the last write
  2462. command.
  2463.  
  2464. 9.2.15. WRITE FILEMARKS Command
  2465.  
  2466.                      Table 9-18: WRITE FILEMARKS Command
  2467.  
  2468. ==============================================================================
  2469.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2470. Byte |        |        |        |        |        |        |        |        |
  2471. ==============================================================================
  2472.  0   |                           Operation Code (10h)                        |
  2473. -----|-----------------------------------------------------------------------|
  2474.  1   |   Logical Unit Number    |         Reserved         |  WSmk  | Immed  |
  2475. -----|-----------------------------------------------------------------------|
  2476.  2   | (MSB)                                                                 |
  2477. -----|---                                                                 ---|
  2478.  3   |                           Transfer Length                             |
  2479. -----|---                                                                 ---|
  2480.  4   |                                                                 (LSB) |
  2481. -----|-----------------------------------------------------------------------|
  2482.  5   |                           Control                                     |
  2483. ==============================================================================
  2484.  
  2485.  
  2486. The WRITE FILEMARKS command (Table 9-18) requests that the target write the
  2487. specified number of filemarks or setmarks to the current position on the
  2488. logical unit.
  2489.  
  2490. If the Write Setmark (WSmk) bit is one, the transfer length specifies the
  2491. number of setmarks to be written.  If the WSmk bit is zero, the transfer
  2492. length specifies the number of filemarks to be written.
  2493.  
  2494. An immediate (Immed) bit of one indicates that the target shall return status
  2495.  
  2496.  
  2497.  
  2498.  
  2499.  
  2500. SCSI-2 draft proposed American National Standard        9-41      Revision 10c41
  2501.  
  2502.  
  2503.  
  2504.  
  2505.  
  2506.  
  2507.  
  2508. Sequential-Access Devices                                               3/9/90
  2509.  
  2510. as soon as the command descriptor block has been validated.  An Immed bit of
  2511. one is only valid if buffered mode is reported in the mode parameter header
  2512. (9.3.3).
  2513.  
  2514. An Immed bit of zero indicates that the target shall not return status until
  2515. the write operation has completed.  Any buffered data, filemarks, and setmarks
  2516. shall be written to the medium prior to completing the command.
  2517.  
  2518. IMPLEMENTORS NOTE:  Upon completion of any buffered write operation, the
  2519. initiator can issue a WRITE FILEMARKS command with the Immed bit set to zero
  2520. and the transfer length field set to zero to ensure that all buffered data,
  2521. filemarks, and setmarks are successfully written to the medium.
  2522.  
  2523. If the logical unit encounters early-warning during a WRITE FILEMARKS command,
  2524. an attempt to finish writing any buffered data, filemarks, or setmarks may be
  2525. made, as determined by the current settings of the REW and SEW bits in the
  2526. device configuration page (9.3.3.1).  The command shall terminate with CHECK
  2527. CONDITION status and the EOM and valid bits shall be set to one in the sense
  2528. data.  If all buffered data, filemarks, and setmarks are successfully
  2529. transferred to the medium, the sense key shall be set to NO SENSE or RECOVERED
  2530. ERROR, as appropriate. If any buffered data, filemarks, or setmarks to be
  2531. written are not transferred to the medium when early-warning is encountered,
  2532. the sense key shall be set to VOLUME OVERFLOW.
  2533.  
  2534. The information field shall be defined as follows:
  2535. (1) If unbuffered mode is reported in the mode parameter header, the
  2536. information field shall be set to the requested transfer length minus the
  2537. actual number of filemarks or setmarks written.
  2538. (2) If buffered mode is reported in the mode parameter header and the buffered
  2539. data was written in variable block mode (see 9.2.14), the information field
  2540. shall be set to the total number of bytes, filemarks, and setmarks not written
  2541. (the number of filemarks or setmarks not transferred from the initiator plus
  2542. the number of bytes, filemarks and setmarks remaining in the target's buffer).
  2543. Note that it is possible for the value in the information field to exceed the
  2544. transfer length.
  2545. (3) If buffered mode is reported and the buffered data was written in fixed
  2546. block mode (see 9.2.14), the information field shall be set to the total
  2547. number of blocks, filemarks, and setmarks not written (the number filemarks or
  2548. setmarks not transferred from the initiator plus the number of blocks,
  2549. filemarks, and setmarks remaining in the target's buffer).  Note that it is
  2550. possible for the value in the information field to exceed the transfer length.
  2551.  
  2552. IMPLEMENTORS NOTE:  The target should ensure that some additional data can be
  2553. written to the medium (e.g., labels, filemarks, or setmarks) after the first
  2554. early-warning indication has been returned to the initiator.
  2555.  
  2556. If a WRITE FILEMARKS command is received while the logical unit is positioned
  2557.  
  2558.  
  2559.  
  2560.  
  2561. SCSI-2 draft proposed American National Standard        9-42      Revision 10c42
  2562.  
  2563.  
  2564.  
  2565.  
  2566.  
  2567.  
  2568.  
  2569. Sequential-Access Devices                                               3/9/90
  2570.  
  2571. between early-warning and end-of-partition, the target shall return CHECK
  2572. CONDITION status after attempting to perform the command.  The EOM and valid
  2573. bits shall be set to one in the sense data.  If all filemarks or setmarks to
  2574. be written are successfully transferred to the medium, the information field
  2575. shall be set to zero.  If any filemarks or setmarks to be written are not
  2576. transferred to the medium prior to encountering end-of- partition, the sense
  2577. key shall be set to VOLUME OVERFLOW and the information field shall be set to
  2578. the requested transfer length minus the actual number of filemarks or setmarks
  2579. written to the medium.
  2580.  
  2581.  
  2582. 9.3. Parameters for Sequential-Access Devices
  2583.  
  2584. 9.3.1. Diagnostic Parameters
  2585.  
  2586. This section defines the descriptors and pages for diagnostic parameters used
  2587. with sequential-access devices.
  2588.  
  2589. The diagnostic page codes for sequential-access devices are defined in Table
  2590. 9-19.
  2591.  
  2592.                       Table 9-19: Diagnostic Page Codes
  2593.  
  2594. ==============================================================================
  2595. Page Code     Description                                           Section
  2596. ------------------------------------------------------------------------------
  2597. 00h        Supported Diagnostic Pages                            7.3.1.1
  2598. 01h - 3Fh     Reserved (for all device type pages)
  2599. 40h - 7Fh     Reserved
  2600. 80h - FFh     Vendor-specific pages
  2601. ==============================================================================
  2602.  
  2603.  
  2604. 9.3.2. Log Parameters
  2605.  
  2606.  
  2607.  
  2608.  
  2609.  
  2610.  
  2611.  
  2612.  
  2613.  
  2614.  
  2615.  
  2616.  
  2617.  
  2618.  
  2619.  
  2620.  
  2621.  
  2622. SCSI-2 draft proposed American National Standard        9-43      Revision 10c43
  2623.  
  2624.  
  2625.  
  2626.  
  2627.  
  2628.  
  2629.  
  2630. Sequential-Access Devices                                               3/9/90
  2631.  
  2632.  
  2633. This section defines the descriptors and pages for log parameters used with
  2634. sequential-access devices.
  2635.  
  2636. The log page codes for sequential-access devices are defined in Table 9-20.
  2637.  
  2638.                           Table 9-20: Log Page Codes
  2639.  
  2640. ==============================================================================
  2641.   Page Code    Description                                          Section
  2642. ------------------------------------------------------------------------------
  2643.      01h       Buffer Over-Run/Under-Run Page                       7.3.2.1
  2644.      02h       Error Counter Page (Write) Page                      7.3.2.2
  2645.      03h       Error Counter Page (Read) Page                       7.3.2.2
  2646.      04h       Error Counter Page (Read Reverse) Page               7.3.2.2
  2647.      05h       Error Counter Page (Verify) Page                     7.3.2.2
  2648.      07h       Last n Error Events Page                             7.3.2.3
  2649.      06h       Non-Media Error Page                                 7.3.2.4
  2650.      00h       Supported Log Pages                                  7.3.2.5
  2651.   08h - 2Fh    Reserved
  2652.      3Fh       Reserved
  2653.   30h - 3Eh    Vendor Specific
  2654. ==============================================================================
  2655.  
  2656.  
  2657. 9.3.3. Mode Parameters
  2658.  
  2659. This section defines the descriptors and pages for mode parameters used with
  2660. sequential-access devices.
  2661.  
  2662. The mode parameter list, including the mode parameter header and mode block
  2663. descriptor, are described in 7.3.3.
  2664.  
  2665. The medium-type code field in the mode parameter header is reserved for
  2666. sequential-access devices.
  2667.  
  2668. The device-specific parameter byte of the mode parameter header (see Tables
  2669. 7-61 and 7-62) is defined in Table 9-21 for sequential-access devices.
  2670.  
  2671.                       Table 9-21: Device-Specific Parameter
  2672.  
  2673. ==============================================================================
  2674.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2675. ==============================================================================
  2676.      |   WP   |      Buffered Mode       |               Speed               |
  2677. ==============================================================================
  2678.  
  2679.  
  2680. For the MODE SENSE command, a write protect (WP) bit of zero indicates that
  2681. the medium is write enabled.  A WP bit of one indicates that the medium is
  2682.  
  2683. SCSI-2 draft proposed American National Standard        9-44      Revision 10c44
  2684.  
  2685.  
  2686.  
  2687.  
  2688.  
  2689.  
  2690.  
  2691. Sequential-Access Devices                                               3/9/90
  2692.  
  2693. write protected.  For the MODE SELECT command, this field is ignored.
  2694.  
  2695. Values for the buffered mode field are defined as follows:
  2696. 0h       The target shall not report GOOD status on write commands until the
  2697. data blocks are actually written on the medium.
  2698.  
  2699. 1h       The target may report GOOD status on write commands as soon as all
  2700. the data specified in the write command has been transferred to the target's
  2701. buffer.  One or more blocks may be buffered prior to writing the block(s) to
  2702. the medium.
  2703.  
  2704. 2h       The target may report GOOD status on write commands as soon as:
  2705.          (1) All the data specified in the write command has been
  2706. successfully transferred to the target's buffer, and
  2707.          (2) All buffered data from different initiators has been successfully
  2708. written to the medium.
  2709.  
  2710. 3h - 7h  Reserved
  2711.  
  2712. Values for the speed field shall be assigned as follows:
  2713. 0h       Default (Use the peripheral device's default speed).
  2714. 1h       Use the peripheral device's lowest speed.
  2715. 2h - Fh  Use increasing peripheral device speeds.
  2716.  
  2717. For the MODE SELECT command, the density code field of the sequential-access
  2718. device block descriptor (7.3.3) indicates the density selected by the
  2719. initiator for use in subsequent read and write operations.  For devices
  2720. capable of automatic density recognition, the density code selected by the
  2721. initiator may be overridden by the target for a subsequent read operation if
  2722. the selected value does not match the current recorded density of the medium.
  2723. If the MODE SELECT command specifies the default density code the device
  2724. selects the actual density code to be used in a vendor specific manner.  The
  2725. value is expected to be the principal density code (or an optimal density
  2726. code).
  2727.  
  2728. For the MODE SENSE command, the density code field reflects the current
  2729. operating density of the device.  If a current operating density has not been
  2730. selected, either because no medium is installed or because the density of the
  2731. installed medium has not been determined, the density code field should be set
  2732. to the principal density code value.  The principal density code is the
  2733. highest density code supported, the optimal density code supported, or the
  2734. most common density code supported.  In some devices, the principal density
  2735. code value returned in response to a MODE SENSE command may change dynamically
  2736. to match the most recently selected density.  The density code value returned
  2737. in response to a MODE SENSE command shall be as described below:
  2738. (1) Following a UNIT ATTENTION condition for a power on or hard reset
  2739. condition, while not ready, the target shall report the principal density.
  2740. (2)  Following a UNIT ATTENTION condition for a not-ready-to-ready transition,
  2741.  
  2742.  
  2743.  
  2744. SCSI-2 draft proposed American National Standard        9-45      Revision 10c45
  2745.  
  2746.  
  2747.  
  2748.  
  2749.  
  2750.  
  2751.  
  2752. Sequential-Access Devices                                               3/9/90
  2753.  
  2754. the target shall:
  2755. (a) report the principal density if no attempt has been made by the target to
  2756. determine the density.
  2757. (b) report the principal density if the target cannot automatically determine
  2758. the density from the medium.
  2759. (c) report the current medium density if the target can determine the density
  2760. from the medium.
  2761. (3) Following a successful read operation at or after beginning-of-medium, the
  2762. target shall report a density code value reflecting the recorded density of
  2763. the medium.  For some implementations, the target may automatically determine
  2764. this value from the medium.  For devices not capable of automatic density
  2765. determination, the principal density is reported if the density code value is
  2766. not provided by the preceding MODE SELECT command.
  2767. (4) Following an unsuccessful read operation or a successful write operation,
  2768. while at beginning-of-partition, the target shall:
  2769. (a) report a density code value as described for item (2) if a previous MODE
  2770. SELECT command has not established a density code for the currently mounted
  2771. volume.
  2772. (b) report a density code value as provided by the last successful MODE SELECT
  2773. command for the currently mounted volume.
  2774. (5) Following a successful unload operation the target shall report the most
  2775. recent density code value as determined by items (2) through (4) above.
  2776.  
  2777. Table 9-22 lists the sequential-access device density codes
  2778.  
  2779.  
  2780.  
  2781.  
  2782.  
  2783.  
  2784.  
  2785.  
  2786.  
  2787.  
  2788.  
  2789.  
  2790.  
  2791.  
  2792.  
  2793.  
  2794.  
  2795.  
  2796.  
  2797.  
  2798.  
  2799.  
  2800.  
  2801.  
  2802.  
  2803.  
  2804.  
  2805. SCSI-2 draft proposed American National Standard        9-46      Revision 10c46
  2806.  
  2807.  
  2808.  
  2809.  
  2810.  
  2811.  
  2812.  
  2813. Sequential-Access Devices                                               3/9/90
  2814.  
  2815.  
  2816.                  Table 9-22: Sequential-Access Density Codes
  2817.  
  2818. ==============================================================================
  2819. Code Value                             Density
  2820. ----------  ------------------------------------------------------------------
  2821.    00h      Default density (MODE SELECT command only)
  2822.  
  2823.                                     Magnetic Tapes
  2824.             Width                  Density
  2825.             mm  (Inch)   Tracks  bpmm    bpi   Code  Type  Reference     Note
  2826.             ----------   ------  ------------  ----  ----  ------------  ----
  2827.    01h      12.7 (0.5)      9     32    (800)  NRZI   R    X3.22-1983      2
  2828.    02h      12.7 (0.5)      9     63   (1600)  PE     R    X3.39-1986      2
  2829.    03h      12.7 (0.5)      9    246   (6250)  GCR    R    X3.54-1986      2
  2830.    04h       6.3 (0.25)    4/9   315   (8000)  GCR    C    X3.136-1986    1,3
  2831.    05h       6.3 (0.25)    4/9   315   (8000)  GCR    C    X3.136-1986     1
  2832.    06h      12.7 (0.5)      9    126   (3200)  PE     R    X3.157-1987    2,4
  2833.    07h       6.3 (0.25)     4    252   (6400)  IMFM   C    X3.116-1986     1
  2834.    08h       3.81 (0.15)    4    315   (8000)  GCR    CS   X3.158-1987    1,4
  2835.    09h      12.7 (0.5)     18   1491  (37871)  GCR    C    X3B5/87-099    2,4
  2836.    0Ah      12.7 (0.5)     22    262   (6667)  MFM    C    X3B5/86-199    1,4
  2837.    0Bh       6.3 (0.25)     4     63   (1600)  PE     C    X3.56-1986      1
  2838.    0Ch      12.7 (0.5)     24    500  (12690)  GCR    C    HI-TC1         1,6
  2839.    0Dh      12.7 (0.5)     24    999  (25380)  GCR    C    HI-TC2         1,6
  2840.    0Eh      Reserved for ECMA
  2841.    0Fh       6.3 (0.25)    15    394  (10000)  GCR    C    QIC-120        1,6
  2842.    10h       6.3 (0.25)    18    394  (10000)  GCR    C    QIC-150        1,6
  2843.    11h       6.3 (0.25)    26    630  (16000)  GCR    C    QIC-320        1,6
  2844.    12h       6.3 (0.25)    30   2034  (51667)  RLL    C    QIC-1350       1,6
  2845.    13h       3.81 (0.15)    1   2400  (61000)  DDS    CS   X3B5/88-185A    5
  2846.    14h       8.00 (0.315)   1   2126  (54000)         CS   X3B5/88-036     5
  2847. 15h - 7Eh   Reserved
  2848.    7Fh      No change from previous density (NO-OP)                        7
  2849. 80h - FFh   Vendor unique
  2850. ==============================================================================
  2851.  
  2852. Key:
  2853.                Code                                       Type
  2854. --------------------------------------------       -----------------------
  2855. NRZI  Non Return to Zero, change on ones           R   Reel-to-Reel
  2856. GCR   Group Code Recording                         C   Cartridge
  2857. PE    Phase Encoded                                CS  Cassette
  2858. IMFM  Inverted Modified Frequency Modulation
  2859. MFM   Modified Frequency Modulation
  2860. DDS   DAT Data Storage
  2861. RLL   Run Length Limited
  2862. NOTES:
  2863.  
  2864.  
  2865.  
  2866. SCSI-2 draft proposed American National Standard        9-47      Revision 10c47
  2867.  
  2868.  
  2869.  
  2870.  
  2871.  
  2872.  
  2873.  
  2874. Sequential-Access Devices                                               3/9/90
  2875.  
  2876. (1)  Serial Recorded.
  2877. (2)  Parallel Recorded.
  2878. (3)  Old format known as QIC-11.
  2879. (4)  See Appendix D for additional standards information.
  2880. (5)  Helical Scan
  2881. (6)  This is not an American National Standard.  The reference is based on an
  2882. industry standard definition of the media format.
  2883. (7)  This density code value is defined for the MODE SELECT command and
  2884. shall not be returned by the MODE SENSE command.
  2885.  
  2886.  
  2887. The mode page codes for sequential-access devices are defined in Table 9-23.
  2888.  
  2889.                          Table 9-23: Mode Page Codes
  2890.  
  2891. ==============================================================================
  2892. Page Code     Description                                           Section
  2893. ------------------------------------------------------------------------------
  2894. 0Ah        Control Mode Page                                     7.3.3.1
  2895. 10h        Device Configuration Page                             9.3.3.1
  2896. 02h        Disconnect-Reconnect Page                             7.3.3.2
  2897. 11h        Medium Partition Page(1)                              9.3.3.2
  2898. 12h        Medium Partition Page(2)                              9.3.3.3
  2899. 13h        Medium Partition Page(3)                              9.3.3.3
  2900. 14h        Medium Partition Page(4)                              9.3.3.3
  2901. 09h        Peripheral Device Page                                7.3.3.3
  2902. 01h        Read-Write Error Recovery Page                        9.3.3.4
  2903. 00h        Vendor specific (does not require page format)        7.3.3
  2904. 03h - 08h     Reserved
  2905. 0Bh - 10h     Reserved
  2906. 15h - 3Eh     Vendor Specific (page format required)
  2907. 3Fh        Returns all pages (valid only for the MODE SENSE command)
  2908. ==============================================================================
  2909.  
  2910.  
  2911. 9.3.3.1. Device Configuration Page
  2912.  
  2913.  
  2914.  
  2915.  
  2916.  
  2917.  
  2918.  
  2919.  
  2920.  
  2921.  
  2922.  
  2923.  
  2924.  
  2925.  
  2926.  
  2927. SCSI-2 draft proposed American National Standard        9-48      Revision 10c48
  2928.  
  2929.  
  2930.  
  2931.  
  2932.  
  2933.  
  2934.  
  2935. Sequential-Access Devices                                               3/9/90
  2936.  
  2937.  
  2938.                     Table 9-24: Device Configuration Page
  2939.  
  2940. ==============================================================================
  2941.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  2942. Byte |        |        |        |        |        |        |        |        |
  2943. ==============================================================================
  2944.  0   |   PS   |Reserved|         Page Code (10h)                             |
  2945. -----|-----------------------------------------------------------------------|
  2946.  1   |                           Page Length (0Eh)                           |
  2947. -----|-----------------------------------------------------------------------|
  2948.  2   |Reserved|  CAP   |  CAF   |                Active Format               |
  2949. -----|-----------------------------------------------------------------------|
  2950.  3   |                           Active Partition                            |
  2951. -----|-----------------------------------------------------------------------|
  2952.  4   |                           Write Buffer Full Ratio                     |
  2953. -----|-----------------------------------------------------------------------|
  2954.  5   |                           Read Buffer Empty Ratio                     |
  2955. -----|-----------------------------------------------------------------------|
  2956.  6   | (MSB)                                                                 |
  2957. -----|---                        Write Delay Time                         ---|
  2958.  7   |                                                                 (LSB) |
  2959. -----|-----------------------------------------------------------------------|
  2960.  8   |  DBR   |  BIS   |  RSmk  |  AVC   |      SOCF       |   RBO  |  REW   |
  2961. -----|-----------------------------------------------------------------------|
  2962.  9   |                           Gap Size                                    |
  2963. -----|-----------------------------------------------------------------------|
  2964.  10  |      EOD Defined         |  EEG   |  SEW   |        Reserved          |
  2965. -----|-----------------------------------------------------------------------|
  2966.  11  | (MSB)                                                                 |
  2967. -----|---                                                                 ---|
  2968.  12  |                           Buffer Size at Early Warning                |
  2969. -----|---                                                                 ---|
  2970.  13  |                                                                 (LSB) |
  2971. -----|-----------------------------------------------------------------------|
  2972.  14  |                           Select Data Compression Algorithm           |
  2973. -----|-----------------------------------------------------------------------|
  2974.  15  |                           Reserved                                    |
  2975. ==============================================================================
  2976.  
  2977.  
  2978. This page (Table 9-24) is used to specify the appropriate sequential-access
  2979. device configuration.
  2980.  
  2981. A change active partition (CAP) bit of one indicates that the logical
  2982. partition is to be changed to the one specified by the active partition field.
  2983. A CAP bit of zero indicates no partition change is specified.
  2984.  
  2985. A change active format (CAF) bit of one indicates that the active format is to
  2986.  
  2987.  
  2988. SCSI-2 draft proposed American National Standard        9-49      Revision 10c49
  2989.  
  2990.  
  2991.  
  2992.  
  2993.  
  2994.  
  2995.  
  2996. Sequential-Access Devices                                               3/9/90
  2997.  
  2998. be changed to the value specified in the active format field.  A CAF bit of
  2999. zero indicates no active format change is specified.  For some devices, the
  3000. format may only be changed when the logical unit is at beginning-of-partition.
  3001.  
  3002.  The active format field indicates which recording format is in use for the
  3003. selected density code when reading or writing data on a logical unit.  The
  3004. value of the active format field is vendor specific.
  3005.  
  3006. The active partition field indicates the current logical partition number in
  3007. use on the medium.
  3008.  
  3009. The write buffer full ratio, on WRITE commands, indicates to the target how
  3010. full the buffer shall be before writing data to the medium.  A value of zero
  3011. indicates that the value is not specified.
  3012.  
  3013. The read buffer empty ratio, on READ commands, indicates to the target how
  3014. empty the buffer shall be before retrieving additional data from the medium.
  3015. A value of zero indicates that the value is not specified.
  3016.  
  3017. The write delay time indicates the maximum time, in 100 millisecond
  3018. increments, that the target should wait before any buffered data that is to be
  3019. written, is forced to the medium after the last buffered WRITE command that
  3020. did not cause the buffer to exceed the buffer full ratio.  A value of zero
  3021. indicates that the target shall never force buffered data to the medium under
  3022. these conditions.
  3023.  
  3024. A data buffer recovery (DBR) bit of one indicates that the target supports
  3025. data buffer recovery using the RECOVER BUFFERED DATA command.  A DBR bit of
  3026. zero indicates that the target does not support data buffer recovery.  This
  3027. bit is target-defined.
  3028.  
  3029. A block identifiers supported (BIS) bit of zero indicates that block IDs are
  3030. not supported in the format written on the medium.  A BIS bit of one indicates
  3031. that the format on the medium has recorded information about the block IDs
  3032. relative to a partition.  This bit is target-defined.
  3033.  
  3034. A report setmarks (RSmk) bit of one indicates that the target shall recognize
  3035. and report setmarks during appropriate read or space operations.  A RSmk bit
  3036. of zero indicates that the target shall not report setmarks.
  3037.  
  3038. The automatic velocity control (AVC) bit of one, indicates that the device
  3039. shall select the speed (if the device supports more than one speed) based on
  3040. the data transfer rate that should optimize streaming activity and minimize
  3041. medium repositioning.  An AVC bit of zero indicates the speed chosen should be
  3042. the device's default speed.
  3043.  
  3044. A stop on consecutive filemarks (SOCF) field of 00b indicates that the device
  3045.  
  3046.  
  3047.  
  3048.  
  3049. SCSI-2 draft proposed American National Standard        9-50      Revision 10c50
  3050.  
  3051.  
  3052.  
  3053.  
  3054.  
  3055.  
  3056.  
  3057. Sequential-Access Devices                                               3/9/90
  3058.  
  3059. shall pre-read data from the medium in buffered mode to the limits of the
  3060. buffer capacity without regard for filemarks.  This implies that the device
  3061. can differentiate between data blocks and filemarks in the buffer.  Values
  3062. 01b, 10b, and 11b specify that the device shall terminate the pre-read
  3063. operation if 1, 2, or 3 consecutive filemarks are detected, respectively.  If
  3064. the RSmk bit is one, the target shall interpret this field as stop on
  3065. consecutive setmarks.
  3066.  
  3067. A recover buffer order (RBO) bit of one indicates that data blocks shall be
  3068. returned from the target's buffer on a RECOVERED BUFFERED DATA command in LIFO
  3069. order (last-in-first-out) from which they were written to the buffer.  A RBO
  3070. bit of zero indicates data blocks shall be returned in FIFO (first-in-first-
  3071. out) order.
  3072.  
  3073. A report early-warning (REW) bit of zero indicates that the target shall not
  3074. report the early-warning condition for read operations and it shall report
  3075. early-warning at or before any medium-defined early-warning position during
  3076. write operations.
  3077.  
  3078. A REW bit of one indicates that the target shall return CHECK CONDITION status
  3079. with the EOM bit set in the sense data when the early-warning position is
  3080. encountered during read and write operations.  If the REW bit is one and the
  3081. SEW bit is zero, the target shall return CHECK CONDITION status with the sense
  3082. key set to VOLUME OVERFLOW when early-warning is encountered during write
  3083. operations.
  3084.  
  3085. IMPLEMENTORS NOTE: A REW bit of one is intended for compatibility with those
  3086. systems using old tape formats that require an early-warning indication during
  3087. read operations.  Other systems should set this bit to zero to avoid potential
  3088. data loss when interchanging tapes between peripheral devices.
  3089.  
  3090. The GapSize field value determines the size of the inter-block gap when
  3091. writing data.  A value of 00h specifies the device's defined gap size.  A
  3092. value of 01h specifies a device defined gap size sufficiently long to support
  3093. update-in-place.  Values of 02h through 0Fh are multipliers on the device's
  3094. defined gap size.  Values 10h through 7Fh are reserved.  Values 80h through
  3095. FFh are vendor specific.
  3096.  
  3097. The end-of-data (EOD) defined field indicates which format type the logical
  3098.  
  3099.  
  3100.  
  3101.  
  3102.  
  3103.  
  3104.  
  3105.  
  3106.  
  3107.  
  3108.  
  3109.  
  3110. SCSI-2 draft proposed American National Standard        9-51      Revision 10c51
  3111.  
  3112.  
  3113.  
  3114.  
  3115.  
  3116.  
  3117.  
  3118. Sequential-Access Devices                                               3/9/90
  3119.  
  3120. unit shall use to detect and generate the EOD area.  The types of EOD formats
  3121. are specified below:
  3122.  
  3123.            Value                   Description
  3124.          ---------   -----------------------------------------------
  3125.             000b     Logical unit's default EOD definition
  3126.             001b     Format-defined erased area of medium
  3127.             010b     As specified in the SOCF field
  3128.             011b     EOD recognition and generation is not supported
  3129.          100b-111b   Reserved
  3130.  
  3131. An enable EOD generation (EEG) bit set to one indicates that the logical unit
  3132. shall generate the appropriate EOD area, as determined by the EOD defined
  3133. field. A value of zero indicates that EOD generation is disabled.
  3134.  
  3135. IMPLEMENTORS NOTE:  Some logical units may not generate EOD at the completion
  3136. of any write-type operation.
  3137.  
  3138. The synchronize at early-warning (SEW) bit set to one indicates that the
  3139. target shall cause any buffered write data, filemarks, or setmarks to be
  3140. transferred to the medium when early-warning is encountered. A value of zero
  3141. indicates that the target shall retain any unwritten buffered data, filemarks,
  3142. or setmarks in the buffer when early-warning is encountered (see the WRITE
  3143. command, 9.2.14, and the WRITE FILEMARKS command, 9.2.15).
  3144.  
  3145. The buffer size at early-warning field indicates the value, in bytes, to which
  3146. the target shall reduce its logical buffer size when writing.  The target
  3147. should reduce the buffer size only when the logical unit is positioned between
  3148. its early-warning and end-of-partition.  A value of zero indicates that the
  3149. implementation of this function is device specific.
  3150.  
  3151. NOTE: The intent is to prevent the loss of data by limiting the size of the
  3152. buffer when near the end-of-partition.
  3153.  
  3154. The select data compression algorithm field set to 00h indicates that the
  3155. target shall not use a compression algorithm on any data sent to it prior to
  3156. writing the data to the medium.  A value of 01h indicates that the data to be
  3157. written shall be compressed using the target's default compression algorithm.
  3158. Values 02h through 7Fh are reserved.  Values 80h through FFh are vendor
  3159. specific.
  3160.  
  3161. 9.3.3.2. Medium Partition Page(1)
  3162.  
  3163.  
  3164.  
  3165.  
  3166.  
  3167.  
  3168.  
  3169.  
  3170.  
  3171. SCSI-2 draft proposed American National Standard        9-52      Revision 10c52
  3172.  
  3173.  
  3174.  
  3175.  
  3176.  
  3177.  
  3178.  
  3179. Sequential-Access Devices                                               3/9/90
  3180.  
  3181.  
  3182.                      Table 9-25: Medium Partition Page(1)
  3183.  
  3184. ==============================================================================
  3185.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  3186. Byte |        |        |        |        |        |        |        |        |
  3187. ==============================================================================
  3188.  0   |   PS   |Reserved|         Page Code (11h)                             |
  3189. -----|-----------------------------------------------------------------------|
  3190.  1   |                           Page Length (n-1)                           |
  3191. -----|-----------------------------------------------------------------------|
  3192.  2   |                           Maximum Additional Partitions               |
  3193. -----|-----------------------------------------------------------------------|
  3194.  3   |                           Additional Partitions Defined               |
  3195. -----|-----------------------------------------------------------------------|
  3196.  4   |  FDP   |  SDP   |  IDP   |       PSUM      |       Reserved           |
  3197. -----|-----------------------------------------------------------------------|
  3198.  5   |                           Medium Format Recognition                   |
  3199. -----|-----------------------------------------------------------------------|
  3200.  6   |                           Reserved                                    |
  3201. -----|-----------------------------------------------------------------------|
  3202.  7   |                           Reserved                                    |
  3203. ==============================================================================
  3204. 8 - n|                   Partition Size Descriptor(s)                        |
  3205. ==============================================================================
  3206.  0   | (MSB)                                                                 |
  3207. -----|---                        Partition Size                           ---|
  3208.  1   |                                                                 (LSB) |
  3209. ==============================================================================
  3210.  
  3211.  
  3212. This page (Table 9-25) is used to specify the first group of medium
  3213. partitions.  Additional groups are specified in medium partition pages(2-4).
  3214.  
  3215. The maximum additional partitions field is a target-defined value indicating
  3216. the maximum number of additional partitions supported by the logical unit.  A
  3217. value of zero indicates that no value is specified.
  3218.  
  3219. The additional partitions defined field specifies the number of additional
  3220. partitions to be defined for a volume when the SDP or IDP bit is set to one.
  3221. The maximum value allowed is the value returned in the maximum additional
  3222. partitions field.
  3223.  
  3224. A fixed data partitions (FDP) bit of one indicates that the device assigns
  3225. partitions based on its fixed definition of partitions.  Setting this bit to
  3226. one may only be valid at beginning-of-partition and is mutually exclusive with
  3227. the SDP and IDP bits.
  3228.  
  3229. A select data partitions (SDP) bit of one indicates that the device is to
  3230.  
  3231.  
  3232. SCSI-2 draft proposed American National Standard        9-53      Revision 10c53
  3233.  
  3234.  
  3235.  
  3236.  
  3237.  
  3238.  
  3239.  
  3240. Sequential-Access Devices                                               3/9/90
  3241.  
  3242. partition the medium into the the number of partitions as specified by the
  3243. additional partitions defined field using partition sizes defined by the
  3244. device.  Setting this bit to one may only be valid at beginning-of-partition
  3245. and it is mutually exclusive with the FDP and IDP fields.
  3246.  
  3247. An initiator-defined partitions (IDP) bit of one indicates that the initiator
  3248. is defining the number and size of the data partitions using the additional
  3249. partitions defined field and the partition size descriptors. Setting this bit
  3250. to one may only be valid at beginning-of-partition and is mutually exclusive
  3251. with the FDP and SDP fields.
  3252.  
  3253. IMPLEMENTORS NOTE: Since defining partitions may require re-formatting the
  3254. medium for some implementations, an implicit write to the medium may occur as
  3255. a result of a MODE SELECT command that supplies any of these parameters.
  3256.  
  3257. Partition size unit of measure (PSUM) field defines the units in which the
  3258. partition size descriptors select the partition size.  The values 00b, 01b,
  3259. and 10b define the units as bytes, kilobytes, and megabytes, respectively.
  3260. The value 11b is reserved.
  3261.  
  3262.  The medium format recognition field is a target-defined value indicating the
  3263. device's capability to automatically identify the medium format and partition
  3264. information when reading an unknown volume.
  3265.  
  3266. Values for the medium format recognition field shall be assigned as follows:
  3267.  
  3268.   00h    Logical unit is incapable of format or partition recognition.
  3269.   01h    Logical unit is capable of format recognition only.
  3270.   02h    Logical unit is capable of partition recognition only.
  3271.   03h    Logical unit is capable of format and partition recognition.
  3272. 04h-FFh  Reserved.
  3273.  
  3274. IMPLEMENTORS NOTE: If a target indicates that it is not capable of medium
  3275. format recognition, the initiator must supply all necessary parameters for the
  3276. device to identify the specific format.  The value in this field may be
  3277. different following a medium change.
  3278.  
  3279. Partition size descriptors define the size of the respective partitions in the
  3280. units specified in the PSUM field.  Up to 64 partitions may be defined using
  3281. this page.  If additional partitions need to be defined, up to 64 partitions
  3282. can be defined in each of the medium partition pages(2-4) defined in 9.3.3.3.
  3283.  
  3284. 9.3.3.3. Medium Partition Page(2-4)
  3285.  
  3286.  
  3287.  
  3288.  
  3289.  
  3290.  
  3291.  
  3292.  
  3293. SCSI-2 draft proposed American National Standard        9-54      Revision 10c54
  3294.  
  3295.  
  3296.  
  3297.  
  3298.  
  3299.  
  3300.  
  3301. Sequential-Access Devices                                               3/9/90
  3302.  
  3303.  
  3304.                     Table 9-26: Medium Partition Page(2-4)
  3305.  
  3306. ==============================================================================
  3307.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  3308. Byte |        |        |        |        |        |        |        |        |
  3309. ==============================================================================
  3310.  0   |   PS   |Reserved|         Page Code (p)                               |
  3311. -----|-----------------------------------------------------------------------|
  3312.  1   |                           Page Length (n-1)                           |
  3313. ==============================================================================
  3314. 2 - n|                       Partition Size Descriptor(s)                    |
  3315. ==============================================================================
  3316.  0   | (MSB)                                                                 |
  3317. -----|---                        Partition Size                           ---|
  3318.  1   |                                                                 (LSB) |
  3319. ==============================================================================
  3320.  
  3321.  
  3322. The medium partition pages (Table 9-26) are used to specify additional groups
  3323. of medium partitions.  The first group is specified in the medium partition
  3324. page(1) (see 9.3.3.2).
  3325.  
  3326. The additional page codes (p) defined for partition size definition are 12h,
  3327. 13h, and 14h.  Up to a maximum of 64 partitions can be defined in each of
  3328. these pages.  The partition size is defined by the value of the partition size
  3329. field.  The units of size used by the partition size field is specified in the
  3330. PSUM field of the medium partition page(1) (9.3.3.2).
  3331.  
  3332. IMPLEMENTORS NOTE: Since defining partitions may require re-formatting the
  3333. medium for some implementations, an implicit write to the medium may occur as
  3334. a result of a MODE SELECT command that supplies these parameters.
  3335.  
  3336. 9.3.3.4. Read-Write Error Recovery Page
  3337.  
  3338.  
  3339.  
  3340.  
  3341.  
  3342.  
  3343.  
  3344.  
  3345.  
  3346.  
  3347.  
  3348.  
  3349.  
  3350.  
  3351.  
  3352.  
  3353.  
  3354. SCSI-2 draft proposed American National Standard        9-55      Revision 10c55
  3355.  
  3356.  
  3357.  
  3358.  
  3359.  
  3360.  
  3361.  
  3362. Sequential-Access Devices                                               3/9/90
  3363.  
  3364.  
  3365.                   Table 9-27: Read-Write Error Recovery Page
  3366.  
  3367. ==============================================================================
  3368.   Bit|   7    |   6    |   5    |   4    |   3    |   2    |   1    |   0    |
  3369. Byte |        |        |        |        |        |        |        |        |
  3370. ==============================================================================
  3371.  0   |   PS   |Reserved|         Page Code (01h)                             |
  3372. -----|-----------------------------------------------------------------------|
  3373.  1   |                           Page Length (0Ah)                           |
  3374. -----|-----------------------------------------------------------------------|
  3375.  2   |Reserved|Reserved|   TB   |Reserved|  EER   |  PER   |  DTE   |  DCR   |
  3376. -----|-----------------------------------------------------------------------|
  3377.  3   |                           Read Retry Count                            |
  3378. -----|-----------------------------------------------------------------------|
  3379.  4   |                           Reserved                                    |
  3380. -----|-----------------------------------------------------------------------|
  3381.  5   |                           Reserved                                    |
  3382. -----|-----------------------------------------------------------------------|
  3383.  6   |                           Reserved                                    |
  3384. -----|-----------------------------------------------------------------------|
  3385.  7   |                           Reserved                                    |
  3386. -----|-----------------------------------------------------------------------|
  3387.  8   |                           Write Retry Count                           |
  3388. -----|-----------------------------------------------------------------------|
  3389.  9   |                           Reserved                                    |
  3390. -----|-----------------------------------------------------------------------|
  3391.  10  |                           Reserved                                    |
  3392. -----|-----------------------------------------------------------------------|
  3393.  11  |                           Reserved                                    |
  3394. ==============================================================================
  3395.  
  3396.  
  3397. The read-write error recovery page (Table 9-27) specifies the error recovery
  3398. and reporting parameters that the target shall use when transferring data
  3399. between the initiator and the medium.  These parameters only apply to read-
  3400. write errors and do not affect message system retries or positioning error
  3401. recovery procedures.
  3402.  
  3403. NOTE: The parameters in this page also apply to verify operations.
  3404.  
  3405. A transfer block (TB) bit of one indicates that a data block that is not
  3406. recoverable within the specified recovery limits shall be transferred to the
  3407. initiator before CHECK CONDITION status is returned.  A TB bit of zero
  3408. indicates that the unrecoverable data block shall not be transferred to the
  3409. initiator.  Data blocks that can be recovered within the recovery limits are
  3410. always transferred, regardless of the value of the TB bit.
  3411.  
  3412. An enable early recovery (EER) bit of one indicates that the target shall use
  3413.  
  3414.  
  3415. SCSI-2 draft proposed American National Standard        9-56      Revision 10c56
  3416.  
  3417.  
  3418.  
  3419.  
  3420.  
  3421.  
  3422.  
  3423. Sequential-Access Devices                                               3/9/90
  3424.  
  3425. the most expedient error recovery algorithm (e.g., attempt error correction
  3426. prior to retries).  An EER bit of zero indicates that the target shall use the
  3427. most deliberate error recovery algorithm, within the limits established by the
  3428. other error recovery parameters (e.g., attempt to recover the block error-free
  3429. prior to using error correction).
  3430.  
  3431. A post error (PER) bit of one indicates that the target shall return CHECK
  3432. CONDITION status to report recovered errors.  A PER bit of zero indicates that
  3433. the target shall not report errors recovered within the limits established by
  3434. the error recovery parameters.  If this bit is zero, the DTE bit must also be
  3435. set to zero.
  3436.  
  3437. A disable transfer on error (DTE) bit of one indicates that the target shall
  3438. terminate the data transfer after a recovered read-write error occurs.  All
  3439. data from the recovered block shall be transferred prior to terminating the
  3440. read-write operation.  A DTE bit of zero indicates that the target shall not
  3441. terminate the transfer for errors recovered within the limits established by
  3442. the read-write error recovery parameters.
  3443.  
  3444. A disable correction (DCR) bit of one indicates that the target shall not use
  3445. error correction codes during error recovery.  A DCR bit of zero allows the
  3446. use of error correction codes for error recovery.
  3447.  
  3448. The read retry count specifies the number of times that the target should
  3449. attempt its recovery algorithm during a read operation before an unrecoverable
  3450. error is reported.  A read retry count of zero indicates that the target shall
  3451. not use its recovery algorithm during read operations.
  3452.  
  3453. The write retry count specifies the number of times that the target should
  3454. attempt its recovery algorithm during a write operation before an
  3455. unrecoverable error is reported.  A write retry count of zero indicates that
  3456. the target shall not use its recovery algorithm during write operations.
  3457.  
  3458. 9.4. Glossary for Sequential Access Devices
  3459.  
  3460.  
  3461.  
  3462.  
  3463.  
  3464.  
  3465.  
  3466.  
  3467.  
  3468.  
  3469.  
  3470.  
  3471.  
  3472.  
  3473.  
  3474.  
  3475.  
  3476. SCSI-2 draft proposed American National Standard        9-57      Revision 10c57
  3477.  
  3478.  
  3479.  
  3480.  
  3481.  
  3482.  
  3483.  
  3484. Sequential-Access Devices                                               3/9/90
  3485.  
  3486.  
  3487. beginning-of-partition. The position at the beginning of the permissible
  3488. recording region of a partition.  If only one partition is defined, this
  3489. position is typically equivalent to the beginning-of-medium.
  3490.  
  3491. beginning-of-medium. The extreme position along the medium in the direction
  3492. away from the supply reel which can be accessed by the device.
  3493.  
  3494. buffered mode. A mode of data transfer in write operations which facilitates
  3495. tape streaming (9.1.5), as reported in the mode parameter header device-
  3496. specific parameter (9.3.3).
  3497.  
  3498. early-warning. A physical mark or device computed position near but logically
  3499. before the end-of-partition (independent of physical direction).  See the REW
  3500. bit in the device configuration page in 9.3.3.1.
  3501.  
  3502. end-of-data. End of data in a partition is denoted in format-specific manner.
  3503. See the EOD defined field in the device configuration page in 9.3.3.1.
  3504.  
  3505. end-of-medium. The extreme position along the medium in the direction away
  3506. from the take-up reel which can be accessed by the device.  This position may
  3507. be accessed by devices that support the LOAD UNLOAD command with the EOT bit
  3508. set to one.
  3509.  
  3510. end-of-partition. The position at the end of the permissible recording region
  3511. of a partition.
  3512.  
  3513. filemark. A special recorded element within a partition, containing no user
  3514. data, which provides a segmentation scheme.
  3515.  
  3516. overlength. The incorrect length condition that exists after executing a read
  3517. command when the the length of the actual block read exceeds the requested
  3518. transfer length in the command descriptor block.
  3519.  
  3520. partition. The entire usable region of recording and reading paths in a volume
  3521. or in a portion of a volume, defined in a device-specific manner.  If there is
  3522. more than one partition, they shall be numbered starting with zero (i.e.,
  3523. beginning-of-partition-zero).
  3524.  
  3525. setmark.  A special recorded element within a partition, containing no user
  3526. data, which provides a segmentation scheme hierarchically superior to
  3527. filemarks for use in addressing or fast positioning on high capacity storage
  3528. devices.
  3529.  
  3530. spacing.  The act of positioning the medium on a sequential access device.
  3531.  
  3532. underlength. The incorrect length condition that exists after executing a read
  3533. command when the requested transfer length in the command descriptor block
  3534. exceeds the length of the actual block read.
  3535.  
  3536.  
  3537. SCSI-2 draft proposed American National Standard        9-58      Revision 10c58
  3538.  
  3539.  
  3540.  
  3541.  
  3542.  
  3543.  
  3544.  
  3545. Sequential-Access Devices                                               3/9/90
  3546.  
  3547. volume. A recording medium together with its physical carrier.
  3548.  
  3549.  
  3550.  
  3551.  
  3552.  
  3553.  
  3554.  
  3555.  
  3556.  
  3557.  
  3558.  
  3559.  
  3560.  
  3561.  
  3562.  
  3563.  
  3564.  
  3565.  
  3566.  
  3567.  
  3568.  
  3569.  
  3570.  
  3571.  
  3572.  
  3573.  
  3574.  
  3575.  
  3576.  
  3577.  
  3578.  
  3579.  
  3580.  
  3581.  
  3582.  
  3583.  
  3584.  
  3585.  
  3586.  
  3587.  
  3588.  
  3589.  
  3590.  
  3591.  
  3592.  
  3593.  
  3594.  
  3595.  
  3596.  
  3597.  
  3598. SCSI-2 draft proposed American National Standard        9-59      Revision 10c59
  3599.  
  3600.