2004-06-09 19:09:16 +00:00
|
|
|
<?php
|
2003-08-19 06:44:58 +00:00
|
|
|
require_once("docutil.php");
|
|
|
|
page_head("Storage");
|
|
|
|
echo "
|
2002-09-10 17:04:05 +00:00
|
|
|
<h3>Files and data servers</h3>
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2002-08-19 18:43:10 +00:00
|
|
|
The BOINC storage model is based on <b>files</b>.
|
2002-09-10 17:04:05 +00:00
|
|
|
The inputs and outputs of applications,
|
2002-11-29 20:13:44 +00:00
|
|
|
and the application executables, are files.
|
2002-09-10 17:04:05 +00:00
|
|
|
<p>
|
|
|
|
The BOINC core client transfers files to and from <b>data servers</b>
|
|
|
|
operated by the project, using HTTP.
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2002-08-19 18:43:10 +00:00
|
|
|
A file is described by an XML element of the form
|
2002-05-17 22:33:57 +00:00
|
|
|
<pre>
|
2002-09-10 17:04:05 +00:00
|
|
|
<file_info>
|
|
|
|
<name>foobar</name>
|
|
|
|
<url>http://a.b.c/foobar</url>
|
|
|
|
<url>http://x.y.z/foobar</url>
|
2002-05-17 22:33:57 +00:00
|
|
|
...
|
2002-09-10 17:04:05 +00:00
|
|
|
<md5_cksum>123123123123</md5_cksum>
|
|
|
|
<nbytes>134423</nbytes>
|
|
|
|
<max_nbytes>200000</max_nbytes>
|
|
|
|
<status>1</status>
|
|
|
|
[ <generated_locally/> ]
|
|
|
|
[ <executable/> ]
|
|
|
|
[ <upload_when_present/> ]
|
|
|
|
[ <sticky/> ]
|
|
|
|
[ <signature_required/> ]
|
|
|
|
</file_info>
|
2002-08-19 18:43:10 +00:00
|
|
|
</pre>
|
2004-04-23 00:05:16 +00:00
|
|
|
The elements are as follows:
|
|
|
|
";
|
|
|
|
list_start();
|
|
|
|
list_item(
|
|
|
|
"name", "The file's name, which must be unique within the project."
|
|
|
|
);
|
|
|
|
list_item("url", "a URL where the file is
|
|
|
|
(or will be) located on a data server.");
|
|
|
|
list_item("md5_cksum", "The MD5 checksum of the file.");
|
|
|
|
list_item("nbytes", "the size of the file in
|
|
|
|
bytes (may be greater than 2^32).");
|
|
|
|
list_item("max_nbytes", "The maximum allowable
|
2002-08-19 18:43:10 +00:00
|
|
|
size of the file in bytes (may be greater than 2^32).
|
2004-04-23 00:05:16 +00:00
|
|
|
This is used to prevent flooding data servers with bogus data.");
|
|
|
|
list_item("status", "0 if the file is not present,
|
2002-08-30 00:10:40 +00:00
|
|
|
1 if the file is present, or a negative error code if there was a
|
2004-04-23 00:05:16 +00:00
|
|
|
problem in downloading or generating the file.");
|
|
|
|
list_item("generated_locally", "If present,
|
2002-08-30 00:10:40 +00:00
|
|
|
indicates that the file will be generated by an application on
|
2004-04-23 00:05:16 +00:00
|
|
|
the client, as opposed to being downloaded.");
|
|
|
|
list_item("executable", "If present, indicates
|
|
|
|
that the file protections should be set to allow execution.");
|
|
|
|
list_item("upload_when_present", "If present,
|
|
|
|
indicates that the file should be uploaded after it is created.");
|
|
|
|
list_item("sticky", "If present, indicates that
|
|
|
|
the file should be retained on the client after its initial use.");
|
|
|
|
list_item("signature_required", "If present,
|
2002-08-30 00:10:40 +00:00
|
|
|
indicates that the file should be verified with an RSA signature.
|
2004-04-23 00:05:16 +00:00
|
|
|
This generally only applies to executable files.");
|
|
|
|
list_end();
|
|
|
|
echo "
|
2002-07-29 19:01:38 +00:00
|
|
|
These attributes allow the specification of various types of files: for
|
|
|
|
example, input or output files that are retained for use as input to
|
2002-08-20 23:54:17 +00:00
|
|
|
later computations.
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2002-08-19 18:43:10 +00:00
|
|
|
Once a file is created (on a data server or a participant host) it
|
2002-08-20 23:54:17 +00:00
|
|
|
is immutable.
|
2002-07-29 19:01:38 +00:00
|
|
|
<h3>File references</h3>
|
2002-04-30 22:22:54 +00:00
|
|
|
<p>
|
2003-10-13 19:23:40 +00:00
|
|
|
Files may be associated with <a href=work.php>workunits</a>,
|
|
|
|
<a href=result.php>results</a> and
|
|
|
|
<a href=app.php>application versions</a>.
|
2002-08-19 18:43:10 +00:00
|
|
|
Each such association is represented by an XML element of the form
|
2002-05-17 22:33:57 +00:00
|
|
|
<pre>
|
2002-09-10 17:04:05 +00:00
|
|
|
<file_ref>
|
|
|
|
<file_name>foobar</file_name>
|
|
|
|
[ <open_name>input</open_name> ]
|
|
|
|
[ <main_program/> ]
|
|
|
|
</file_ref>
|
2002-08-19 18:43:10 +00:00
|
|
|
</pre>
|
2004-04-23 00:05:16 +00:00
|
|
|
The elements are as follows:
|
2003-08-19 06:44:58 +00:00
|
|
|
";
|
2004-04-23 00:05:16 +00:00
|
|
|
list_start();
|
|
|
|
list_item("file_name", "Specifies a file.");
|
|
|
|
list_item("open_name", "The name by
|
|
|
|
which the application will refer to the file.");
|
|
|
|
list_item("main_program", "Used for files
|
|
|
|
associated with application versions.
|
|
|
|
It indicates that this file is the application's main program.");
|
|
|
|
list_end();
|
2003-08-19 06:44:58 +00:00
|
|
|
page_tail();
|
|
|
|
?>
|