SCSI Commands: 46BSET CAPACITY
Page
207
3.34
SET CAPACITY
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.
With respect to a 200 gigabyte cartridge, if the SET CAPACITY command specifies
the portion of the total volume capacity to be made available for use less than 40
gigabytes, the device will round up the capacity to 40 gigabytes. With respect to a
400 gigabyte cartridge, if the SET CAPACITY command specifies the portion of the
total volume capacity to be made available for use less than 80 gigabytes, the
device will round up the capacity to 80 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.
3.34.1
SET CAPACITY Command Descriptor Block
Byte
Bits
7 6 5 4 3 2 1 0
0
Operation Code (0Bh)
1
Ignored LUN
Reserved
IMMED
2
Reserved
3
(MSB)
4
Capacity Proportion Value
(LSB)
5
Control
3.34.1.1
SET CAPACITY Command Field Descriptions
Field
Bytes
Bits
Description
Operation
Code
0
The Operation Code for SET CAPACITY is 0Bh.
Ignored
Logical
Unit
1
5-7
The LUN field is vestigial from the SCSI-1 standard and is ignored.
IMMED
1
0
0 = Status is not returned until the operation is complete
1 = Status is returned as soon as the operation is initiated.
Summary of Contents for LTO 4
Page 1: ......