mirror of https://github.com/BOINC/boinc.git
- vboxwrapper: if shared dir is specified and it doesn't exist on startup,
that's not necessarily an error. Try to create it. If it exists and is a file, show appropriate error message. svn path=/trunk/boinc/; revision=24824
This commit is contained in:
parent
0777ab174a
commit
c164349afc
|
@ -9113,3 +9113,12 @@ David 17 Dec 2011
|
||||||
sched/
|
sched/
|
||||||
sched_types.h
|
sched_types.h
|
||||||
sched_version.cpp
|
sched_version.cpp
|
||||||
|
|
||||||
|
David 19 Dec 2011
|
||||||
|
- vboxwrapper: if shared dir is specified and it doesn't exist on startup,
|
||||||
|
that's not necessarily an error.
|
||||||
|
Try to create it.
|
||||||
|
If it exists and is a file, show appropriate error message.
|
||||||
|
|
||||||
|
samples/vboxwrapper/
|
||||||
|
vboxwrapper.cpp
|
||||||
|
|
|
@ -26,8 +26,6 @@
|
||||||
// - suspend/resume/quit/abort
|
// - suspend/resume/quit/abort
|
||||||
// - reporting CPU time
|
// - reporting CPU time
|
||||||
// - loss of heartbeat from core client
|
// - loss of heartbeat from core client
|
||||||
// - checkpointing
|
|
||||||
// (at the level of task; or potentially within task)
|
|
||||||
//
|
//
|
||||||
// Contributors:
|
// Contributors:
|
||||||
// Andrew J. Younge (ajy4490 AT umiacs DOT umd DOT edu)
|
// Andrew J. Younge (ajy4490 AT umiacs DOT umd DOT edu)
|
||||||
|
@ -211,18 +209,26 @@ int main(int argc, char** argv) {
|
||||||
}
|
}
|
||||||
|
|
||||||
// Validate whatever configuration options we can
|
// Validate whatever configuration options we can
|
||||||
|
//
|
||||||
if (vm.enable_shared_directory) {
|
if (vm.enable_shared_directory) {
|
||||||
|
if (boinc_file_exists("shared")) {
|
||||||
if (!is_dir("shared")) {
|
if (!is_dir("shared")) {
|
||||||
fprintf(
|
fprintf(
|
||||||
stderr,
|
stderr,
|
||||||
"%s vbox_job.xml specifies that the shared directory should be enabled, but the\n"
|
"%s 'shared' exists but is not a directory.\n",
|
||||||
"%s 'shared' subdirectory could not be found. Please check your app_version and verify\n"
|
|
||||||
"%s that the <file_prefix> element has been specified.\n",
|
|
||||||
boinc_msg_prefix(buf, sizeof(buf)),
|
|
||||||
boinc_msg_prefix(buf, sizeof(buf)),
|
|
||||||
boinc_msg_prefix(buf, sizeof(buf))
|
boinc_msg_prefix(buf, sizeof(buf))
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
} else {
|
||||||
|
retval = boinc_mkdir("shared");
|
||||||
|
if (retval) {
|
||||||
|
fprintf(stderr,
|
||||||
|
"%s couldn't created shared directory: %s.\n",
|
||||||
|
boinc_msg_prefix(buf, sizeof(buf)),
|
||||||
|
boincerror(retval)
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
boinc_get_init_data_p(&aid);
|
boinc_get_init_data_p(&aid);
|
||||||
|
|
Loading…
Reference in New Issue