]> git.sur5r.net Git - bacula/bacula/blobdiff - regress/README.vtape
ebl rename faketape to vtape
[bacula/bacula] / regress / README.vtape
diff --git a/regress/README.vtape b/regress/README.vtape
new file mode 100644 (file)
index 0000000..4e6c882
--- /dev/null
@@ -0,0 +1,52 @@
+HOWTO SETUP A FAKE TAPE ENVIRONMENT
+-----------------------------------
+
+Introduction:
+-------------
+
+The fake tape driver (vtape) attempts to simulate a tape drive from a low level
+aspect. It emulates tape operations like fsf, bsf, weom, variable bloc, etc..
+
+For that the driver implements 5 operations :
+ - read
+ - write
+ - open
+ - close
+ - ioctl
+
+Setup the regress environment for tape tests
+--------------------------------------------
+
+Be sure to configure your config file with this :
+
+TAPE_DRIVE="/tmp/drive0"
+TAPE_DRIVE1="/tmp/drive1"
+DRIVE1=0
+DRIVE2=1
+SLOT1=1
+SLOT2=2
+AUTOCHANGER="/tmp/ach_config"
+USE_VTAPE=yes
+AUTOCHANGER_SCRIPT=disk-changer
+
+You can remplace /tmp/ by what you want.
+
+Then, the /tmp/ach_config can contain this to simulate 2 drives :
+maxdrive=2
+maxslot=10
+
+And type "make setup"
+
+That all !
+
+
+Setup a quite big autochanger (5 drives and 80 slots)
+-----------------------------------------------------
+
+Just run "./tests/vtape-test-changer" test to use right configuration files,
+then you can use "./scripts/prepare-fake-autochanger" script to initialize the
+dummy autochanger.
+
+
+
+