OSDN Git Service

0d0c930648b1796b3e62a3a9f5d8e5e1334a08c6
[linuxjm/LDP_man-pages.git] / draft / man8 / sync.8
1 .\" Reboot/halt and Linux information extracted from Rick Faith's original
2 .\" sync(8) manpage, dating back to the Linux 0.99 days.  The Linux-specific
3 .\" information is attributed to Linus Torvalds
4 .\" Copyright 1992, 1993 Rickard E. Faith (faith@cs.unc.edu)
5 .\" May be distributed under the GNU General Public License
6 .\"
7 .\" Japanese Version Copyright (c) 2000 Yuichi SATO
8 .\"         all rights reserved.
9 .\" Translated Tue Jun 13 14:04:28 JST 2000
10 .\"         by by Yuichi SATO <sato@complex.eng.hokudai.ac.jp>
11 .\"
12 .\"WORD:        synchronize     同期
13 .\"WORD:        superblock      スーパーブロック
14 .\"WORD:        halt            停止
15 .\"WORD:        processer       プロセッサー
16 .\"
17 .TH SYNC 8 1998-11-01 "GNU" "Linux Programmer's Manual"
18 .\"O .SH NAME
19 .SH 名前
20 .\"O sync \- synchronize data on disk with memory
21 sync \- ディスク上のデータをメモリと同期させる
22 .\"O .SH SYNOPSIS
23 .SH 書式
24 .B "sync [\-\-help] [\-\-version]"
25 .\"O .SH DESCRIPTION
26 .SH 説明
27 .\"O .B sync
28 .\"O writes any data buffered in memory out to disk.
29 .\"O This can include (but is not limited to) modified superblocks,
30 .\"O modified inodes, and delayed reads and writes.
31 .\"O This must be implemented by the kernel;
32 .\"O The
33 .\"O .B sync
34 .\"O program does nothing but exercise the
35 .\"O .BR sync (2)
36 .\"O system call.
37 .B sync
38 はメモリにバッファされたすべてのデータをディスクに書き込む。
39 これには、変更されたスーパーブロック・変更された inode・
40 遅延した読み書きが含まれる (他にもあるかもしれない)。
41 これはカーネルに実装されているべきである。
42 なぜなら
43 .B sync
44 プログラムは
45 .BR sync (2)
46 システムコールを行使するだけだからである。
47 .PP
48 .\"O The kernel keeps data in memory to avoid doing (relatively slow) disk
49 .\"O reads and writes.
50 .\"O This improves performance, but if the computer
51 .\"O crashes, data may be lost or the filesystem corrupted as a result.
52 .\"O .B sync
53 .\"O ensures that everything in memory is written to disk.
54 カーネルは (比較的遅い) ディスクの読み書きを避けるため、
55 データをメモリに保持する。
56 これにより性能は向上するが、コンピュータがクラッシュした場合、
57 結果としてデータが損失したりファイルシステムが壊れたりするかもしれない。
58 .B sync
59 はメモリにある内容すべてがディスクに書き込まれることを保証する。
60 .PP
61 .\"O .B sync
62 .\"O should be called before the processor is halted in an unusual manner
63 .\"O (e.g., before causing a kernel panic when debugging new kernel code).
64 .\"O In general, the processor should be halted using the
65 .\"O .BR shutdown (8)
66 .\"O or
67 .\"O .BR reboot (8)
68 .\"O or
69 .\"O .BR halt (8)
70 .\"O commands, which will attempt to put the system in a quiescent state
71 .\"O before calling
72 .\"O .BR sync (2).
73 .\"O (Various implementations of these commands exist; consult your
74 .\"O documentation; on some systems one should not call
75 .\"O .BR reboot (8)
76 .\"O and
77 .\"O .BR halt (8)
78 .\"O directly.)
79 (新しいカーネルコードをデバックしていてカーネルパニックを引き起こす前などの)
80 通常と異なる方法でプロセッサーを停止させる前には、
81 .B sync
82 を呼び出すべきである。
83 一般的には
84 .BR sync (2)
85 を呼び出す前に、
86 システムを静止状態にさせる
87 .BR shutdown (8),
88 .BR reboot (8),
89 .BR halt (8)
90 といったコマンドを使ってプロセッサーを停止させるべきである。
91 (これらのコマンドにはいろいろな実装があるので、
92 ドキュメントを当ること。
93 .BR reboot (8),
94 .BR halt (8)
95 を直接呼び出すべきではないシステムもある。)
96 .\"O .SH "OPTIONS"
97 .SH オプション
98 .TP
99 .B "\-\-help"
100 .\"O Print a usage message on standard output and exit successfully.
101 標準出力に使用方法のメッセージを出力して正常終了する。
102 .TP
103 .B "\-\-version"
104 .\"O Print version information on standard output, then exit successfully.
105 標準出力にバージョン情報を出力して正常終了する。
106 .TP
107 .B "\-\-"
108 .\"O Terminate option list.
109 オプションリストを終了する。
110 .\"O .SH ENVIRONMENT
111 .SH 環境変数
112 .\"O The variables \fBLANG\fP, \fBLC_ALL\fP, \fBLC_CTYPE\fP,
113 .\"O and \fBLC_MESSAGES\fP have the usual meaning.
114 変数 \fBLANG\fP, \fBLC_ALL\fP, \fBLC_CTYPE\fP, \fBLC_MESSAGES\fP
115 は通常の意味を持つ。
116 .\"O .SH "CONFORMING TO"
117 .SH 準拠
118 POSIX.2.
119 .\"O .SH NOTES
120 .SH 注意
121 .\"O On Linux,
122 .\"O .B sync
123 .\"O is only guaranteed to schedule the dirty blocks for writing; it can
124 .\"O actually take a short time before all the blocks are finally written.
125 .\"O The
126 .\"O .BR reboot (8)
127 .\"O and
128 .\"O .BR halt (8)
129 .\"O commands take this into account by sleeping for a few seconds after
130 .\"O calling
131 .\"O .BR sync (2).
132 Linux では、
133 .B sync
134 は (まだ書き込まれていない) ダーティなブロックの書き込みを
135 スケジューリングすることのみを保証する。
136 つまり、すべてのブロックの書き込みが終るまでに、実際には少し時間がかかる。
137 .BR reboot (8),
138 .BR halt (8)
139 コマンドは
140 .BR sync (2)
141 を呼んだ後に数秒間スリープすることで、これを考慮に入れている。
142 .PP
143 .\"O This page describes
144 .\"O .B sync
145 .\"O as found in the file\%utils-4.0 package;
146 .\"O other versions may differ slightly.
147 このページでは file\%utils-4.0 パッケージでの
148 .B sync
149 コマンドについて説明しているので、
150 その他のバージョンでは少し違いがあるかもしれない。
151 .\"O .SH "SEE ALSO"
152 .SH 関連項目
153 .BR sync (2),
154 .BR halt (8),
155 .BR reboot (8),
156 .BR update (8)