STIOC_ALLOW_MEDIUM_REMOVAL
This IOCTL command allows an operator to remove media from the device. This command is normally used after the STIOC_PREVENT_MEDIUM_REMOVAL command to restore the device to the default state.
There is no associated data structure.
An example of the STIOC_ALLOW_MEDIUM_REMOVAL command
is
#include <sys/IBM_tape.h>
if (!ioctl (tapefd, STIOC_ALLOW_MEDIUM_REMOVAL, NULL))
printf ("The STIOC_ALLOW_MEDIUM_REMOVAL ioctl succeeded\n");
else {
perror ("The STIOC_ALLOW_MEDIUM_REMOVAL ioctl failed");
smcioc_request_sense();
}