Hi,
We are trying to update our project, and are having issues with the fanout tag.
We decided that we don't want to use it, because we will be managing the
upload/download proliferation in a slightly different manner.
We therefore decided not to set the value in config.xml.
However this has caused us some problems (setting the value to 0 also gives
the same problem):
1
update_versions
tests for the presence of <uldl_dir_fanout>, and dies if it is not found,
despite the script never apparently using the value in <uldl_dir_fanout>
2
If Fanout is not set in config.xml, then dir_hier functions fail bizarrely, and
break everything
<?php
require_once("../inc/boinc_db.inc");
require_once("../inc/util_basic.inc");
require_once("../inc/dir_hier.inc");
$config = get_config();
$fanout = parse_element($config, "<uldl_dir_fanout>");
$path = dir_hier_path($name, "../../download", $fanout);
print "Fanout: ".$fanout."<br />\n";
print "Path: ".$path."<br />\n";
#;if (!$fanout) die("<fanout> not found in config.xml\n");
?>
Warning: Division by zero in [PROJECT_DIR]/html/inc/dir_hier.inc on line 25
Fanout:
Path: ../../download/0/
One would prefer the Path to be set to ../../download/ which would be
harmless, rather than inserting a spurious '0'
Presumably the C functions to retrieve the paths from the filename will suffer
the same bug.
So, could anyone tell me how one disables this feature?
Thanks in anticipation
Jonathan Miller
System Administrator
ClimatePrediction.Net, University of Oxford
Tel: 01865 610680
_______________________________________________
boinc_dev mailing list
[email protected]
http://lists.ssl.berkeley.edu/mailman/listinfo/boinc_dev
To unsubscribe, visit the above URL and
(near bottom of page) enter your email address.