Commands 157
Commands
WRITE ATTRIBUTE 8Dh
The WRITE ATTRIBUTE command allows an application client to write attribute
values to MAM (Medium Auxiliary Memory). Application clients should issue
READ ATTRIBUTE commands before using this command to discover what
support the device server has for MAM.
Pre-Execution Checks:
If the combination of Volume Number and Partition Number is not valid,
CHECK CONDITION is reported with a sense key of ILLEGAL REQUEST and
additional sense of 2400h (invalid field in CDB).
If any of the following conditions occur,
CHECK CONDITION is reported with a
sense key of
ILLEGAL REQUEST and additional sense of 2600h (invalid field in
parameter list). None of the attributes are changed:
■ The application client attempts to write an attribute that has the Read-
Only bit (see “MAM Attribute Data” on page 103) set to one when read
with the
READ ATTRIBUTE command.
■ The application client sets the length of an attribute incorrectly.
■ The application client sets an attribute to an unsupported value.
If a
WRITE ATTRIBUTE command is sent with the length of an attribute set to
zero and the attribute is reported as read/write (Read-Only=0) using the
READ
ATTRIBUTE
command, the attribute will be cleared. It will thus effectively no
longer exist; it will not be returned in response to a
READ ATTRIBUTE command
and not reported with the
READ ATTRIBUTE command, Attribute List service
action.
The
WRITE ATTRIBUTE command is terminated in the following circumstances:
■ If there is not enough space to write the attributes to the MAM. CHECK
CONDITION
is reported with a sense key of ILLEGAL REQUEST and
additional sense of 5506h (Media Auxiliary Memory full). None of the
attributes are changed.
■ If the MAM is not accessible because there is not tape in the drive. CHECK
CONDITION
is reported with a sense key of NOT READY and additional
sense of 3A00h (medium not present). None of the attributes are changed.
Illegal Field Reservation Deferred Error Unit Attention Media Access