OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / 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)