Set Capacity; Command Descriptor Block - Seagate Viper 200 Scsi Interface Manual

Lto tape drive
Table of Contents

Advertisement

Page 112

SET CAPACITY

Command Descriptor Block

Field Descriptions
The Set Capacity command sets the available medium for a volume to a proportion
of the total capacity of that volume. Any excess space is unavailable on the volume
after successful completion of this command until reset by a new Set Capacity
command.
The Set Capacity command is valid only when the medium is at beginning-of-
medium. If the medium is logically at any other position, the command is rejected
with Check Condition status. The sense key is Illegal Request with the additional
sense code and an additional sense code qualifier set to position past beginning of
medium.
If the medium is write protected, the command is rejected with Check Condition
status. The sense key is Data Protect with the additional sense code and an
additional sense code qualifier set to Write Protected.
If the Set Capacity command specifies the portion of the total volume capacity to be
made available for use less than 10 gigabytes, the device will round up the capacity
to 10 gigabytes. The command is terminated with Check Condition status. The sense
key is Recovered Error with the additional sense code and an additional sense code
qualifier set to Rounded Parameter.
A valid Set Capacity command causes all data on the tape to be lost.
Bits
Byte
7
6
0
1
Ignored LUN
2
3
4
5
Field
Bytes
Bits
Operation
0
Code
Ignored
1
5-7
Logical
Unit
Immed
1
0
Capacity
3-4
Proportion
Value
Reserved
Control
5
5
4
3
Operation Code (0Bh)
Reserved
Reserved
Capacity Proportion Value, MSB
Capacity Proportion Value, LSB
Control
Description
The Operation Code for Set Capacity is 0Bh.
The LUN field is residual from the SCSI-1 days and is ignored.
0 = Status is not returned until the operation is complete
1 = Status is returned as soon as the operation is initiated.
This field specifies the portion of the total tape capacity to be made
available for use. The Capacity Proportion Value is the numerator of
a fraction with a denominator of 65535. The resulting available tape
capacity is equal to the total tape capacity multiplied by this fraction.
The drive rounds up the capacity to the next higher supported value.
All reserved bits must be 0.
See Control Byte Format on page 18.
LTO SCSI Interface Manual
2
1
0
Immed

Advertisement

Table of Contents
loading

Table of Contents