2003-08-19 06:44:58 +00:00
|
|
|
<?
|
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Core client: file structure");
|
|
|
|
echo "
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2002-09-05 11:46:10 +00:00
|
|
|
The core client runs in a <b>BOINC home directory</b>.
|
|
|
|
It creates and uses the following files and directories within the
|
2002-07-29 19:01:38 +00:00
|
|
|
home directory:
|
2002-04-30 22:22:54 +00:00
|
|
|
<ul>
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
2002-09-05 11:46:10 +00:00
|
|
|
<b>prefs.xml</b>:
|
2003-02-13 22:49:26 +00:00
|
|
|
The user's global preferences; see below.
|
2002-09-05 11:46:10 +00:00
|
|
|
<li>
|
2003-02-13 22:49:26 +00:00
|
|
|
<b>client_state.xml</b> describes of the files,
|
2002-07-29 19:01:38 +00:00
|
|
|
application, workunits and results present on this client.
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
2003-02-13 22:49:26 +00:00
|
|
|
<b>Account files</b> describes the participant's account
|
|
|
|
in each subscribed project,
|
|
|
|
including the resource share and project-specific preferences.
|
|
|
|
It contains no host-specific information.
|
2002-09-26 05:57:10 +00:00
|
|
|
The name of the account file is <b>account_PROJECT.xml</b>,
|
|
|
|
where PROJECT is an encoded version of the project's master URL.
|
|
|
|
<li>
|
|
|
|
A directory <b>projects</b>,
|
|
|
|
which contains a <b>project directory</b> for each subscribed project.
|
|
|
|
The name of a project directory is an encoded
|
2002-09-05 11:46:10 +00:00
|
|
|
version of the project's master URL.
|
2002-09-26 05:57:10 +00:00
|
|
|
The project directory contains all files (inputs,
|
2002-07-29 19:01:38 +00:00
|
|
|
outputs, executables) related to the project.
|
2002-08-19 18:43:10 +00:00
|
|
|
<li>
|
|
|
|
<b>slots</b>: this directory contains one subdirectory for each
|
2003-08-19 06:44:58 +00:00
|
|
|
CPU 'slot' (normally there are as many slots as the host has CPUs).
|
2002-09-05 11:46:10 +00:00
|
|
|
The subdirectories are named 0, 1, ... N-1.
|
2002-04-30 22:22:54 +00:00
|
|
|
</ul>
|
|
|
|
<p>
|
2002-09-05 11:46:10 +00:00
|
|
|
Each result executes in particular slot directory.
|
2003-08-19 06:44:58 +00:00
|
|
|
The core client creates 'soft link' files in the slot directory,
|
2002-09-05 11:46:10 +00:00
|
|
|
linking to the corresponding files in the project directory.
|
2002-08-21 23:49:33 +00:00
|
|
|
|
2002-09-26 05:57:10 +00:00
|
|
|
<h3>Format of account files</h3>
|
2003-02-13 22:49:26 +00:00
|
|
|
The format of an account file is as follows:
|
2002-09-26 05:57:10 +00:00
|
|
|
<pre>
|
|
|
|
<account>
|
|
|
|
<master_url>http://www.myproject.com/</master_url>
|
|
|
|
<authenticator>3f7b90793a0175ad0bda68684e8bd136</authenticator>
|
|
|
|
<resource_share>1</resource_share>
|
2003-02-21 01:38:16 +00:00
|
|
|
[ <show_email/> ]
|
|
|
|
[ <send_email/> ]
|
|
|
|
<project_specific>
|
|
|
|
...
|
|
|
|
</project_specific>
|
2002-09-26 05:57:10 +00:00
|
|
|
</account>
|
|
|
|
</pre>
|
2003-02-21 01:38:16 +00:00
|
|
|
Note: everything from <resource_share> onwards is
|
2003-08-19 06:44:58 +00:00
|
|
|
the contents of the 'project_prefs' field of the user database record,
|
2003-02-21 01:38:16 +00:00
|
|
|
less the enclosing <project_preferences> tags.
|
2002-09-26 05:57:10 +00:00
|
|
|
|
2002-09-05 11:46:10 +00:00
|
|
|
<h3>Format of prefs.xml</h3>
|
2002-08-21 23:49:33 +00:00
|
|
|
<p>
|
2002-09-05 11:46:10 +00:00
|
|
|
This format of prefs.xml is as follows:
|
2002-08-21 23:49:33 +00:00
|
|
|
|
|
|
|
<pre>
|
2002-08-23 19:22:17 +00:00
|
|
|
<preferences>
|
|
|
|
<prefs_mod_time>1030128387</prefs_mod_time>
|
|
|
|
<from_project>http://www.myproject.com/</from_project>
|
|
|
|
<from_scheduler>http://server3.myproject.com/cgi-bin/scheduler_cgi</from_scheduler>
|
|
|
|
<mod_time>2</mod_time>
|
|
|
|
<high_water_days>2</high_water_days>
|
|
|
|
<low_water_days>1</low_water_days>
|
|
|
|
</preferences>
|
2003-02-13 22:49:26 +00:00
|
|
|
|
|
|
|
XXX this is not complete
|
2002-08-21 23:49:33 +00:00
|
|
|
</pre>
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
|
|
|
page_tail();
|
|
|
|
?>
|