blob: 696e620bd39bd876ff7fbfb89011002f52ada15d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
|
<!--
$FML: directory.sgml,v 1.3 2005/09/25 04:27:18 fukachan Exp $
-->
<chapter id="directory">
<title>
Directory
</title>
<sect1 id="directory.subdir.hier.level">
<title>
Q: How Recursively Sub Directory Can Be Created ?
</title>
<para>
The structore holding the html-ized article is as follows:
<screen>
200201/msg\d+.html
</screen>
</para>
<para>
One sub-directory by default.
</para>
<para>
Consider directory listing.
"ls" returns 1000 files soon, but 10000 files a little slowly.
</para>
<para>
To accelerate listing, we should use sub-directory structure.
For example, each sub-directory holds 1000 files.
The structure such as "spool/sub/file" holds 10^6 ( million ) files
and
listing of it is fast.
</para>
<para>
It must be enough to assume that 1 million articles for one ML.
</para>
</sect1>
<sect1 id="directory.recipes">
<title>
Recipes
</title>
<qandaset>
<qandaentry>
<question>
<para>
Where directory names are defined ?
</para>
</question>
<answer>
<para>
There are default definitiions at
/usr/local/etc/fml/defaults/$VERSION/default_config.cf file.
Each config.cf of each ML overloads them.
Use fmlconf command to show the current value.
<screen>
% fmlconf $ml_name | grep _dir
</screen>
You can extract values from config object in a hook.
<screen>
$_xxx_hook = q{
my $config = $curproc->config();
my $xxxdir = $config->{ some_where_dir };
... snip ...
}
</screen>
</para>
</answer>
</qandaentry>
</qandaset>
</sect1>
</chapter>
|