階層化した アップロード・ダウンロード用 ディレクトリ |
|
これを解決するには、 階層化したアップロード・ダウンロード用ディレクトリ を使います。 そうするには、下記の行
<uldl_dir_fanout>1024</uldl_dir_fanout>
これで BOINC は、 階層化したアップロード・ダウンロード用ディレクトリを使うようになります。 この両方のディレクトリには、0〜3ff という名前をもつ 1024 個のサブディレクトリが置かれます。 ファイルは(そのファイル名でハッシュした値をもとに) これらのサブディレクトリに分けて配置します。
階層構成は入力ファイルと出力ファイルだけに適用されます。 実行可能ファイルと他のアプリケーションの版のファイルは、 ダウンロード用ディレクトリのトップレベルに置かれます。
この変更は、プロジェクト固有コードにいくつかの点で影響を与えます。 1つは、仕事の生成をする work generator プログラムです。 create_work() 関数を呼ぶ前に、 入力ファイルを適切な[サブ] ディレクトリに置いておかねばなりません。 この作業のために、関数
int dir_hier_path(
const char* filename, const char* root, int fanout, char* result,
bool make_directory_if_needed=false
);
2つめは、validator と assimilator が階層構成の中で出力ファイルのパスを知るために、 下記の関数を呼ばねばならないということです。
int get_output_file_path(RESULT const& result, string& path);
以下のユーティリティ・プログラムが提供されます。
dir_hier_move src_dir dst_dir fanout dir_hier_path filename
dir_hier_move は、非階層構造の src_dir にあるすべてのファイルを
(指定した数 fanout の枝を持つ)dst_dir へ移動します。
dir_hier_path のほうは、与えたファイル名に対応して、
階層構成の中にそのファイルを置くときの完全パス名を出力します。
すでに非階層構成のディレクトリでプロジェクトを運用されている場合、 以下の手順で階層構成へ移行できます。
<download_dir_alt>旧ダウンロード用ディレクトリ</download_dir_alt>
最終更新時刻 00:48:50, 2006年08月12日(JST)
Copyright © 2009 University of California.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.
Copyright © 2009 Komori Hitoshi(je2bwm at jarl.com).
Japanese translation from English web pages on BOINC.
Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License,
Version 1.2 or any later version published by the Free Software Foundation.