12.07.2015 Views

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SCSI Primary Commands - 2.pdf

SHOW MORE
SHOW LESS
  • No tags were found...

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

18 July 2001 T10/1236-D Revision 207.12 PREVENT ALLOW MEDIUM REMOVAL commandThe PREVENT ALLOW MEDIUM REMOVAL command (see table 77) requests that the target enable or disablethe removal of the medium in the logical unit. The logical unit shall not allow medium removal if any initiatorcurrently has medium removal prevented.Table 77 — PREVENT ALLOW MEDIUM REMOVAL commandBitByte7 6 5 4 3 2 1 00 OPERATION CODE (1Eh)1 Reserved2 Reserved3 Reserved4 Reserved PREVENT5 CONTROLTable 78 defines the PREVENT field values and their meanings.Table 78 — PREVENT ALLOW MEDIUM REMOVAL PREVENT fieldPREVENT00b01b10b11bDescriptionMedium removal shall be allowed from both the data transportelement and the attached medium changer (if any).Medium removal shall be prohibited from the data transportelement but allowed from the attached medium changer (if any).Medium removal shall be allowed for the data transport elementbut prohibited for the attached medium changer.Medium removal shall be prohibited for both the data transportelement and the attached medium changer.PREVENT values 10b and 11b are valid only when the RMB bit and the MCHNGR bit are both equal to one in thestandard INQUIRY data.The prevention of medium removal shall begin when any application client issues a PREVENT ALLOW MEDIUMREMOVAL command with a PREVENT field of 01b or 11b (i.e., medium removal prevented). The prevention ofmedium removal for the logical unit shall terminate:a) after all initiators with application clients that previously prevented medium removal issue PREVENTALLOW MEDIUM REMOVAL commands with a PREVENT field of 00b or 10b, and the device server hassuccessfully performed a synchronize cache operation; orb) upon a hard reset condition.For an initiator that has executed a PERSISTENT RESERVE OUT command with a service action of RESERVE,REGISTER AND IGNORE EXISTING KEY, or REGISTER service action, the PREVENT field shall be set to zero aspart of the uninterrupted sequence of events performed by a PERSISTENT RESERVE OUT command with aservice action of PREEMPT AND ABORT using that initiator's registration value in the SERVICE ACTION RESER-VATION KEY field. This allows an initiator to override the prevention of medium removal function for an initiator that isno longer operating correctly.dpANS <strong>SCSI</strong> <strong>Primary</strong> <strong>Commands</strong> - 2 (SPC-2) 113

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!