]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Modify disk-changer to check if slot contains something before
authorEric Bollengier <eric@eb.homelinux.org>
Sun, 15 Jun 2008 08:39:18 +0000 (08:39 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Sun, 15 Jun 2008 08:39:18 +0000 (08:39 +0000)
     loading it

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7141 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/scripts/disk-changer.in
bacula/technotes-2.5

index 208bc95553ddf88e7fddd46830d0614b17cc9647..0ba494a64d56e1bcabe4d00f69b5427e4fc0c934 100644 (file)
@@ -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
index d7e0ae3d5068d60843da427ff6d6c504b8dbd487..b4a0adb404d68b8028e8a4f2b5210a7c3293380f 100644 (file)
@@ -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).