3 # Copyright (C) 2000-2015 Kern Sibbald
4 # License: BSD 2-Clause; see file LICENSE-FOSS
8 # Create a big Volume > 5 GB and backup to it to test disk
9 # seeking on big volumes. We cheat and artifically grow
12 TestName="big-vol-test"
17 scripts/copy-test-confs
19 echo "${cwd}/build" >${cwd}/tmp/file-list
21 change_jobname CompressedTest $JobName
24 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
27 @$out ${cwd}/tmp/log1.out
28 @#setdebug level=100 storage=File
29 label storage=File volume=TestVolume001
37 check_for_zombie_jobs storage=File
40 # Now increase the size of the Volume using gigaslam
45 ${cwd}/build/src/tools/grow TestVolume001 ${size}
47 echo "Execute of ${cwd}/build/src/tools/grow failed."
52 cat <<END_OF_DATA >${cwd}/tmp/bconcmds
55 @$out ${cwd}/tmp/log1.out
57 UPDATE Media SET Volbytes=${size} WHERE VolumeName='TestVolume001';
59 llist volume=TestVolume001
60 @# Now do another full save with big Volume
61 run level=Full job=$JobName yes
68 SELECT * FROM JobMedia;
70 @$out ${cwd}/tmp/log2.out
71 restore where=${cwd}/tmp/bacula-restores storage=File select all done
79 check_for_zombie_jobs storage=File
85 # Get rid of big files
86 rm -f ${cwd}/tmp/TestVolume001