]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Update for faketape driver
authorEric Bollengier <eric@eb.homelinux.org>
Tue, 6 May 2008 20:31:48 +0000 (20:31 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Tue, 6 May 2008 20:31:48 +0000 (20:31 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6901 91ce42f0-d328-0410-95d8-f526ca767f89

regress/prototype.conf
regress/scripts/prepare-two-tapes.in

index b91f778898e4f1d343284ccf57145034babf7a71..46d8a25c580d6a2c401a8de10c21d1f6573a9803 100644 (file)
@@ -32,6 +32,9 @@ SLOT2=2
 # For two drive tests -- set to /dev/null if you do not have it 
 TAPE_DRIVE1="/dev/null"
 
+# Set this if you are using fake tape driver
+#USE_FAKETAPE=yes
+
 # This must be the path to the autochanger including its name
 AUTOCHANGER_PATH="/usr/sbin/mtx"
 
index 28eea0b59314231ce85ed090d7db065d9d3ca62b..1da184650929e832e42940a065dc4d95e83b0b44 100755 (executable)
@@ -29,5 +29,9 @@ if test x@autochanger@ != x/dev/null; then
    fi
 fi
 
-mt -f @tape_drive@ rewind
-mt -f @tape_drive@ weof
+if test a$USE_FAKETAPE = a; then
+   mt -f @tape_drive@ rewind
+   mt -f @tape_drive@ weof
+else
+   cp /dev/null @tape_drive@
+fi