Esempio n. 1
0
/*
 * Called to indicate we are now at the end of the tape, and
 *   writing is not possible.
 */
void DEVICE::set_ateot()
{
   /* Make tape effectively read-only */
   Dmsg0(200, "==== Set AtEof\n");
   state |= (ST_EOF|ST_EOT|ST_WEOT);
   clear_append();
}
/*
 * Called to indicate we are now at the end of the volume, and writing is not possible.
 */
void generic_tape_device::set_ateot()
{
   /*
    * Make volume effectively read-only
    */
   state |= (ST_EOF | ST_EOT | ST_WEOT);
   clear_append();
}
Esempio n. 3
0
File: dev.c Progetto: dl5rcw/bareos
/*
 * Called to indicate we are now at the end of the volume, and writing is not possible.
 */
void DEVICE::set_ateot()
{
   /*
    * Make volume effectively read-only
    */
   set_bit(ST_EOF, state);
   set_bit(ST_EOT, state);
   set_bit(ST_WEOT, state);
   clear_append();
}