]> git.sur5r.net Git - bacula/bacula/blob - regress/README.vtape
ebl rename faketape to vtape
[bacula/bacula] / regress / README.vtape
1 HOWTO SETUP A FAKE TAPE ENVIRONMENT
2 -----------------------------------
3
4 Introduction:
5 -------------
6
7 The fake tape driver (vtape) attempts to simulate a tape drive from a low level
8 aspect. It emulates tape operations like fsf, bsf, weom, variable bloc, etc..
9
10 For that the driver implements 5 operations :
11  - read
12  - write
13  - open
14  - close
15  - ioctl
16
17 Setup the regress environment for tape tests
18 --------------------------------------------
19
20 Be sure to configure your config file with this :
21
22 TAPE_DRIVE="/tmp/drive0"
23 TAPE_DRIVE1="/tmp/drive1"
24 DRIVE1=0
25 DRIVE2=1
26 SLOT1=1
27 SLOT2=2
28 AUTOCHANGER="/tmp/ach_config"
29 USE_VTAPE=yes
30 AUTOCHANGER_SCRIPT=disk-changer
31
32 You can remplace /tmp/ by what you want.
33
34 Then, the /tmp/ach_config can contain this to simulate 2 drives :
35 maxdrive=2
36 maxslot=10
37
38 And type "make setup"
39
40 That all !
41
42
43 Setup a quite big autochanger (5 drives and 80 slots)
44 -----------------------------------------------------
45
46 Just run "./tests/vtape-test-changer" test to use right configuration files,
47 then you can use "./scripts/prepare-fake-autochanger" script to initialize the
48 dummy autochanger.
49
50
51
52