From 25f34af66c8dd6a8a0abe39dba996046d967aa13 Mon Sep 17 00:00:00 2001 From: Eric Bollengier Date: Tue, 6 May 2008 20:31:48 +0000 Subject: [PATCH] ebl Update for faketape driver git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6901 91ce42f0-d328-0410-95d8-f526ca767f89 --- regress/prototype.conf | 3 +++ regress/scripts/prepare-two-tapes.in | 8 ++++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/regress/prototype.conf b/regress/prototype.conf index b91f778898..46d8a25c58 100644 --- a/regress/prototype.conf +++ b/regress/prototype.conf @@ -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" diff --git a/regress/scripts/prepare-two-tapes.in b/regress/scripts/prepare-two-tapes.in index 28eea0b593..1da1846509 100755 --- a/regress/scripts/prepare-two-tapes.in +++ b/regress/scripts/prepare-two-tapes.in @@ -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 -- 2.39.5