From 7a31fe9348a77c27f05cabcd5d74ea775d474789 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Sun, 15 Jun 2008 08:39:18 +0000 Subject: [PATCH] ebl Modify disk-changer to check if slot contains something before loading it git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7141 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/scripts/disk-changer.in | 5 +++++ bacula/technotes-2.5 | 3 +++ 2 files changed, 8 insertions(+) diff --git a/bacula/scripts/disk-changer.in b/bacula/scripts/disk-changer.in index 208bc95553..0ba494a64d 100644 --- a/bacula/scripts/disk-changer.in +++ b/bacula/scripts/disk-changer.in @@ -223,6 +223,11 @@ case $cmd in fi i=`expr $i + 1` done + # check if slot exists + if [ ! -f $dir/slot${slot} ] ; then + echo "Storage Element $slot is Empty" + exit 1 + fi if [ -f $dir/loaded${drive} ]; then ld=`cat $dir/loaded${drive}` else diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index d7e0ae3d50..b4a0adb404 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -25,6 +25,9 @@ vtape driver General: +15Jun08 +ebl Modify disk-changer to check if slot contains something before + loading it. 14Jun08 ebl Fix vtape on win32 and debian. ebl Fix autoselect patch (cause segfault). -- 2.39.5