4.6 Packet Commands
4.6.8 PREVENT/ALLOW MEDIUM REMOVAL command
Table 4.79 PREVENT/ALLOW MEDIUM REMOVAL command
Bit | 7 | 6 | 5 |
| 4 |
| 3 |
| 2 | 1 | 0 |
Byte |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
0 |
|
|
| Operation Code (1Eh) |
|
|
| ||||
|
|
|
|
|
|
|
|
|
|
| |
1 |
|
|
|
| Reserved |
|
|
|
|
| |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
| Reserved |
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
| |
4 |
|
|
|
| Reserved |
|
|
|
| Prevent | |
|
|
|
|
|
|
|
|
|
|
| |
|
|
|
| Reserved |
|
|
|
|
| ||
|
|
|
|
|
|
|
|
|
|
|
|
The PREVENT/ALLOW MEDIUM REMOVAL command allows or inhibits media ejection on the device.
A value of 0 in the Prevent bit allows ejection and a value of 1 disables ejection.
The
If there is any data not written yet in the write cache, the ODD completes writing on media, then allows ejection.
Hard reset resets the prevent state to allow ejection.
Table 4.80 Response to Prevent/Allow/Eject
Operation | Status at | When no media is | When media is loaded |
| operation | loaded |
|
|
|
|
|
Prevent = 0 | Enabled | No error | No error |
|
|
|
|
| Inhibited | No error | No error |
|
|
|
|
Prevent = 1 | Enabled | No error | No error. Media ejection is inhibited. |
|
|
|
|
| Inhibited | No error | No error |
|
|
|
|
Eject | Enabled | No error | No error: Eject the cartridge |
|
|
|
|
(Ejection with | Inhibited | Error: | Error: |
START/STOP UNIT |
| SENSE KEY 5 | SENSE KEY 5 |
command) |
| ASC/ASCQ 5302 | ASC/ASCQ 5302 |
|
|
|
|
Eject | Enabled | The state remains | Eject the cartridge |
|
| unchanged. |
|
|
|
|
|
(Ejection with the Eject | Inhibited | The state remains | The state remains unchanged. Media |
switch) |
| unchanged. | ejection is still inhibited. |
|
|
|
|