]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/scripts/functions
ebl update for next-vol test
[bacula/bacula] / regress / scripts / functions
index 391fc482f6da36269554561e212f15d4cd0af374..96095a3981a661e17e56215a9fb5c465141dbecb 100644 (file)
@@ -260,6 +260,18 @@ debug_wait()
   fi
 }
 
+init_slot()
+{
+   DRIVE=$1
+   SLOT=$2
+   if test -n "$DRIVE" -a -n "$SLOT"; then
+      if test ! -c $DRIVE -a ! -b $DRIVE -a x$USE_VTAPE != x ; then
+         dir=`dirname $DRIVE`
+         touch $dir/slot$SLOT
+      fi
+   fi
+}
+
 init_drive()
 {
   if test a$USE_VTAPE = a; then