3 # Create a big Volume > 5 GB and backup to it to test disk
4 # seeking on big volumes. We cheat and artifically grow
7 TestName="big-vol-test"
12 scripts/copy-test-confs
13 echo "${cwd}/build" >/tmp/file-list
15 change_jobname CompressedTest $JobName
18 cat <<END_OF_DATA >tmp/bconcmds
22 @#setdebug level=100 storage=File
23 label storage=File volume=TestVolume001
31 check_for_zombie_jobs storage=File
34 # Now increase the size of the Volume using gigaslam
38 ${cwd}/build/src/tools/grow TestVolume001 5200000000
40 echo "Execute of ${cwd}/build/src/tools/grow failed."
46 cat <<END_OF_DATA >tmp/bconcmds
51 UPDATE Media SET Volbytes=${size} WHERE VolumeName='TestVolume001';
53 llist volume=TestVolume001
54 @# Now do another full save with big Volume
55 run level=Full job=$JobName yes
62 SELECT * FROM JobMedia;
65 restore where=${cwd}/tmp/bacula-restores storage=File select all done
74 check_for_zombie_jobs storage=File
80 # Get rid of big files
81 rm -f ${cwd}/tmp/TestVolume001