Skip to content

Commit

Permalink
Merge pull request #5523 from BOINC/dpa_vbox_demo4
Browse files Browse the repository at this point in the history
client: enforce dont_check_file_sizes option
  • Loading branch information
AenBleidd committed Mar 1, 2024
2 parents 2f6edb4 + 3f70040 commit 2b5091a
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
1 change: 1 addition & 0 deletions client/cs_files.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ int FILE_INFO::check_size() {
if (gstate.global_prefs.dont_verify_images && is_image_file(path)) {
return 0;
}
if (cc_config.dont_check_file_sizes) return 0;
if (nbytes && (size != nbytes)) {
delete_project_owned_file(path, true);
status = FILE_NOT_PRESENT;
Expand Down
16 changes: 10 additions & 6 deletions samples/worker/run_worker_1.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
#! /bin/sh
# script for running worker in a VM, with shared slot and project dirs

mkdir /root/project
mount -t vboxsf project /root/project
execpath=`./boinc_resolve worker`
inpath=`./boinc_resolve in`
outpath=`./boinc_resolve out`
mkdir /root/project >>log 2>&1
mount -t vboxsf project /root/project >>log 2>&1
execpath=`./boinc_resolve worker` >>log 2>&1
inpath=`./boinc_resolve in` >>log 2>&1
outpath=`./boinc_resolve out` >>log 2>&1

$execpath $inpath $outpath
echo $execpath >>log
echo $inpath >>log
echo $outpath >>log

$execpath $inpath $outpath >>log 2>&1

0 comments on commit 2b5091a

Please sign in to comment.