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/gigaslam
40 echo "Execute of ${cwd}/build/src/tools/gigaslam failed."
44 cat gigaslam.gif >>TestVolume001
45 cat gigaslam.gif >>TestVolume001
46 cat gigaslam.gif >>TestVolume001
47 cat gigaslam.gif >>TestVolume001
48 cat gigaslam.gif >>TestVolume001
49 size=`ls -l TestVolume001 | cut -f 5 -d ' '`
52 cat <<END_OF_DATA >tmp/bconcmds
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;
71 restore where=${cwd}/tmp/bacula-restores storage=File select all done
80 check_for_zombie_jobs storage=File
86 # Get rid of big files
87 rm -f ${cwd}/tmp/gigaslam.gif
88 rm -f ${cwd}/tmp/TestVolume001