-# This program is free software; you can redistribute it and/or modify it
-# under the terms of the GNU General Public License version 2 as published
-# by the Free Software Foundation.
+# This program is free software; you can redistribute it and/or
+# modify it under the terms of the GNU General Public License
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
{ slot => 1, state => Amanda::Changer::SLOT_FULL,
barcode => '11111', reserved => 1, loaded_in => 0, current => 1,
device_status => $DEVICE_STATUS_VOLUME_UNLABELED,
{ slot => 1, state => Amanda::Changer::SLOT_FULL,
barcode => '11111', reserved => 1, loaded_in => 0, current => 1,
device_status => $DEVICE_STATUS_VOLUME_UNLABELED,
- device_error => undef,
- f_type => undef, label => undef },
+ device_error => "File 0 not found",
+ f_type => $Amanda::Header::F_EMPTY, label => undef },
{ slot => 2, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', reserved => 1, loaded_in => 1,
device_status => $DEVICE_STATUS_VOLUME_UNLABELED,
{ slot => 2, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', reserved => 1, loaded_in => 1,
device_status => $DEVICE_STATUS_VOLUME_UNLABELED,
- device_error => undef,
- f_type => undef, label => undef },
+ device_error => "File 0 not found",
+ f_type => $Amanda::Header::F_EMPTY, label => undef },
{ slot => 3, state => Amanda::Changer::SLOT_FULL,
barcode => '33333',
device_status => undef, device_error => undef,
{ slot => 3, state => Amanda::Changer::SLOT_FULL,
barcode => '33333',
device_status => undef, device_error => undef,
barcode => '33333', loaded_in => 1,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
barcode => '33333', loaded_in => 1,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '44444', loaded_in => 0, current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '44444', loaded_in => 0, current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
barcode => '33333', loaded_in => 1,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
barcode => '33333', loaded_in => 1,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
barcode => '33333', loaded_in => 0,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
barcode => '33333', loaded_in => 0,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
barcode => '33333', loaded_in => 0,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
barcode => '33333', loaded_in => 0,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
{ slot => 4, state => Amanda::Changer::SLOT_FULL,
barcode => '22222', current => 1,
device_status => $DEVICE_STATUS_SUCCESS,
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
f_type => $Amanda::Header::F_TAPESTART, label => 'TAPE-4' },
device_status => $DEVICE_STATUS_SUCCESS,
device_error => undef,
f_type => $Amanda::Header::F_TAPESTART, label => 'TAPE-4' },
} else {
check_inventory($chg, $mtx_config->{'barcodes'} > 0, $steps->{'quit'}, [
{ slot => 1, state => Amanda::Changer::SLOT_FULL,
} else {
check_inventory($chg, $mtx_config->{'barcodes'} > 0, $steps->{'quit'}, [
{ slot => 1, state => Amanda::Changer::SLOT_FULL,