OSDN Git Service

Import translated manuals from JM CVS Repository.
[linuxjm/jm.git] / manual / LDP_man-pages / release / man2 / umount.2
1 .\" Hey Emacs! This file is -*- nroff -*- source.
2 .\"
3 .\" Copyright (C) 1993 Rickard E. Faith <faith@cs.unc.edu>
4 .\" and Copyright (C) 1994 Andries E. Brouwer <aeb@cwi.nl>
5 .\" and Copyright (C) 2002, 2005 Michael Kerrisk <mtk.manpages@gmail.com>
6 .\"
7 .\" Permission is granted to make and distribute verbatim copies of this
8 .\" manual provided the copyright notice and this permission notice are
9 .\" preserved on all copies.
10 .\"
11 .\" Permission is granted to copy and distribute modified versions of this
12 .\" manual under the conditions for verbatim copying, provided that the
13 .\" entire resulting derived work is distributed under the terms of a
14 .\" permission notice identical to this one.
15 .\"
16 .\" Since the Linux kernel and libraries are constantly changing, this
17 .\" manual page may be incorrect or out-of-date.  The author(s) assume no
18 .\" responsibility for errors or omissions, or for damages resulting from
19 .\" the use of the information contained herein.  The author(s) may not
20 .\" have taken the same level of care in the production of this manual,
21 .\" which is licensed free of charge, as they might when working
22 .\" professionally.
23 .\"
24 .\" Formatted or processed versions of this manual, if unaccompanied by
25 .\" the source, must acknowledge the copyright and authors of this work.
26 .\"
27 .\" 2008-10-06, mtk: Created this as a new page by splitting
28 .\"     umount/umount2 material out of mount.2
29 .\"
30 .\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
31 .\"         all rights reserved.
32 .\" Translated 2008-11-20, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.13
33 .\" 
34 .TH UMOUNT 2 2009-09-03 "Linux" "Linux Programmer's Manual"
35 .SH Ì¾Á°
36 umount, umount2 \- ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë
37 .SH ½ñ¼°
38 .nf
39 .B "#include <sys/mount.h>"
40 .sp
41 .BI "int umount(const char *" target );
42 .sp
43 .BI "int umount2(const char *" target ", int " flags );
44 .fi
45 .SH ÀâÌÀ
46 .BR umount ()
47 ¤È
48 .BR umount2 ()
49 ¤Ï
50 .I target
51 ¤Ë¥Þ¥¦¥ó¥È¤µ¤ì¤Æ¤¤¤ë (ºÇ¾å°Ì¤Î) ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤ò³°¤¹¡£
52 .\" Note: the kernel naming differs from the glibc naming
53 .\" umount2 is the glibc name for what the kernel now calls umount
54 .\" and umount is the glibc name for oldumount
55
56 ¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Î¥¢¥ó¥Þ¥¦¥ó¥È¤ò¹Ô¤¦¤Ë¤Ï¡¢
57 ŬÀڤʸ¢¸Â (Linux ¤Ç¤Ï
58 .B CAP_SYS_ADMIN
59 ¥±¡¼¥Ñ¥Ó¥ê¥Æ¥£) ¤¬É¬ÍפǤ¢¤ë¡£
60
61 Linux 2.1.116 ¤«¤é¡¢
62 .BR umount2 ()
63 ¥·¥¹¥Æ¥à¥³¡¼¥ë¤¬Äɲ䵤줿¡£¤³¤ì¤Ï
64 .BR umount ()
65 ¤ÈƱÍͤË
66 .I target
67 ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤¹¤ë¤¬¡¢
68 .I flags
69 ¤¬Äɲ䵤ì¤Æ¤ª¤ê¡¢Áàºî»þ¤Î¿¶¤ëÉñ¤¤¤òÀ©¸æ¤Ç¤­¤ë¡£
70 .TP
71 .BR MNT_FORCE " (2.1.116 °Ê¹ß)"
72 »ÈÍÑÃæ (busy) ¤Ç¤â¶¯À©Åª¤Ë¥¢¥ó¥Þ¥¦¥ó¥È¤ò¼Â¹Ô¤¹¤ë¡£
73 ¤³¤ì¤ò¹Ô¤¦¤È¥Ç¡¼¥¿¤ò¼º¤¦²ÄǽÀ­¤¬¤¢¤ë¡£
74 (NFS ¥Þ¥¦¥ó¥ÈÀìÍÑ)
75 .TP
76 .BR MNT_DETACH " (2.4.11 °Ê¹ß)"
77 Ãٱ䥢¥ó¥Þ¥¦¥ó¥È¤ò¹Ô¤¦¡£¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤ËÂФ¹¤ë¿·µ¬¤Î¥¢¥¯¥»¥¹¤Ï
78 ÉÔ²Äǽ¤È¤Ê¤ê¡¢¼ÂºÝ¤Î¥¢¥ó¥Þ¥¦¥ó¥È¤Ï¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤¬¥Ó¥¸¡¼¤Ç
79 ¤Ê¤¯¤Ê¤Ã¤¿»þÅÀ¤Ç¹Ô¤¦¡£
80 .TP
81 .BR MNT_EXPIRE " (Linux 2.6.8 °Ê¹ß)"
82 ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ë´ü¸ÂÀÚ¤ì¤Î°õ¤ò¤Ä¤±¤ë¡£
83 ¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤¬¸½ºß»ÈÍÑÃæ¤Ç¤Ê¤¤¾ì¹ç¡¢¤³¤Î¥Õ¥é¥°¤ò¤Ä¤±¤Æ
84 .BR umount2 ()
85 ¤ò½é¤á¤Æ¸Æ¤Ó½Ð¤¹¤È
86 .B EAGAIN
87 ¥¨¥é¡¼¤Ç¼ºÇÔ¤¹¤ë¤¬¡¢¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ë¤Ï´ü¸ÂÀÚ¤ì (expire)
88 ¤Î°õ¤¬¤Ä¤±¤é¤ì¤ë¡£
89 ¤½¤Î¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ï¤¤¤º¤ì¤«¤Î¥×¥í¥»¥¹¤¬¥¢¥¯¥»¥¹¤·¤Ê¤¤¸Â¤ê
90 ´ü¸ÂÀÚ¤ì¤Î°õ¤¬¤Ä¤¤¤¿¤Þ¤Þ¤È¤Ê¤ë¡£
91 ¤â¤¦°ìÅÙ
92 .B MNT_EXPIRE
93 ¤ò¤Ä¤±¤Æ
94 .BR umount2 ()
95 ¤ò¸Æ¤Ó½Ð¤¹¤È¡¢´ü¸ÂÀÚ¤ì¤Î°õ¤Î¤Ä¤¤¤¿¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤¬
96 ¥¢¥ó¥Þ¥¦¥ó¥È¤µ¤ì¤ë¡£
97 ¤³¤Î¥Õ¥é¥°¤ò
98 .B MNT_FORCE
99 ¤â¤·¤¯¤Ï
100 .B MNT_DETACH
101 ¤ÈƱ»þ¤Ë»ØÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Ê¤¤¡£
102 .SH ÊÖ¤êÃÍ
103 À®¸ù¤·¤¿¾ì¹ç 0 ¤¬Ê֤롣
104 ¥¨¥é¡¼¤Î¾ì¹ç¡¢\-1 ¤¬Ê֤ꡢ
105 .I errno
106 ¤¬¥¨¥é¡¼¤ÎÆâÍƤˤ·¤¿¤¬¤Ã¤ÆÀßÄꤵ¤ì¤ë¡£
107 .SH ¥¨¥é¡¼
108 °Ê²¼¤Ë¼¨¤¹¥¨¥é¡¼¤Ï¡¢¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë°Í¸¤·¤Ê¤¤¤â¤Î¤Ç¤¢¤ë¡£
109 ¤½¤ì¤¾¤ì¤Î¥Õ¥¡¥¤¥ë¥·¥¹¥Æ¥à¥¿¥¤¥×¤Ë¤Ï¸ÇÍ­¤Î¥¨¥é¡¼¤¬Â¸ºß¤¹¤ë¾ì¹ç¤¬¤¢¤ê¡¢
110 Æȼ«¤ÎÆ°ºî¤ò¤¹¤ë¤³¤È¤â¤¢¤ë¡£¾Ü¤·¤¯¤Ï¥«¡¼¥Í¥ë¤Î¥½¡¼¥¹¤ò¸«¤ÆÍߤ·¤¤¡£
111 .TP
112 .B EAGAIN
113 .B MNT_EXPIRE
114 ¤ò»ØÄꤷ¤¿
115 .BR umount2 ()
116 ¤Î¸Æ¤Ó½Ð¤·¤Ç¡¢Àµ¾ï¤Ë̤»ÈÍѤΥե¡¥¤¥ë¥·¥¹¥Æ¥à¤Ë´ü¸ÂÀÚ¤ì¤Î°õ¤ò
117 ¤Ä¤±¤ë¤³¤È¤¬¤Ç¤­¤¿¡£
118 .TP
119 .B EBUSY
120 »ÈÍÑÃæ (busy) ¤Î¤¿¤á¡¢
121 .I target
122 ¤ò¥¢¥ó¥Þ¥¦¥ó¥È¤Ç¤­¤Ê¤«¤Ã¤¿¡£
123 .TP
124 .B EFAULT
125 .I target
126 ¤¬¥æ¡¼¥¶¥¢¥É¥ì¥¹¶õ´Ö¤Î³°¤ò»Ø¤·¤Æ¤¤¤ë¡£
127 .TP
128 .B EINVAL
129 .I target
130 ¤¬¥Þ¥¦¥ó¥È¥Ý¥¤¥ó¥È¤Ç¤Ï¤Ê¤¤¡£
131 ¤Þ¤¿¤Ï¡¢
132 .BR umount2 ()
133 ¤Ç¡¢
134 .B MNT_EXPIRE
135 ¤¬»ØÄꤵ¤ì¤¿
136 .BR umount2 ()
137 ¤Ç¡¢
138 .B MNT_DETACH
139 ¤«
140 .B MNT_FORCE
141 ¤¬Æ±»þ¤Ë»ØÄꤵ¤ì¤¿¡£
142 .TP
143 .B ENAMETOOLONG
144 ¥Ñ¥¹Ì¾¤ÎŤµ¤¬
145 .B MAXPATHLEN
146 ¤è¤êŤ«¤Ã¤¿¡£
147 .TP
148 .B ENOENT
149 ¥Ñ¥¹Ì¾¤¬¶õ¤Ç¤¢¤ë¡£¤â¤·¤¯¤Ï»ØÄꤵ¤ì¤¿¥Ñ¥¹¤¬Â¸ºß¤·¤Ê¤¤¡£
150 .TP
151 .B ENOMEM
152 ¥«¡¼¥Í¥ë¤¬¥Õ¥¡¥¤¥ë̾¤ä¥Ç¡¼¥¿¤ò¥³¥Ô¡¼¤¹¤ë¤¿¤á¤Î¶õ¤­¥Ú¡¼¥¸¤ò³ÎÊݤǤ­¤Ê¤«¤Ã¤¿¡£
153 .TP
154 .B EPERM
155 ¸Æ¤Ó½Ð¤·¸µ¤¬É¬Íפʸ¢¸Â¤ò»ý¤Ã¤Æ¤¤¤Ê¤¤¡£
156 .SH ¥Ð¡¼¥¸¥ç¥ó
157 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=10092
158 .BR MNT_DETACH
159 ¤È
160 .BR MNT_EXPIRE
161 ¤Ï¥Ð¡¼¥¸¥ç¥ó 2.11 °Ê¹ß¤Î glibc ¤Ç¤Î¤ßÍøÍѤǤ­¤ë¡£
162 .SH ½àµò
163 ¤³¤Î´Ø¿ô¤Ï Linux ¸ÇÍ­¤Î´Ø¿ô¤Ç¤¢¤ê¡¢°Ü¿¢¤ò¹Íθ¤·¤¿¥×¥í¥°¥é¥à¤Ç¤Ï
164 »ÈÍѤ¹¤Ù¤­¤Ç¤Ê¤¤¡£
165 .SH Ãí°Õ
166 ¸µ¡¹¤Î
167 .BR umount ()
168 ´Ø¿ô¤Ï \fIumount(device)\fP ¤Î·Á¤Ç¸Æ¤Ó½Ð¤µ¤ì¡¢
169 ¥Ö¥í¥Ã¥¯¥Ç¥Ð¥¤¥¹°Ê³°¤ò»ØÄꤷ¤Æ¸Æ¤Ó½Ð¤¹¤È
170 .B ENOTBLK
171 ¤òÊÖ¤·¤¿¡£
172 Linux 0.98p4 ¤Ç¡¢ÌµÌ¾¥Ç¥Ð¥¤¥¹ (anonymous device) ¤ËÂбþ¤¹¤ë¤¿¤á¤Ë
173 \fIumount(dir)\fP ¤Î·Á¤Ç¤Î¸Æ¤Ó½Ð¤·¤¬²Ã¤¨¤é¤ì¤¿¡£
174 Linux 2.3.99-pre7 ¤Ç¡¢\fIumount(device)\fP ¤Ïºï½ü¤µ¤ì¡¢
175 \fIumount(dir)\fP ¤À¤±¤¬»Ä¤µ¤ì¤¿
176 (°ì¤Ä¤Î¥Ç¥Ð¥¤¥¹¤òÊ£¿ô¤Î°ÌÃ֤˥ޥ¦¥ó¥È½ÐÍè¤ë¤è¤¦¤Ë¤Ê¤Ã¤¿¤¿¤á¡¢
177 ¥Ç¥Ð¥¤¥¹¤ò»ØÄꤷ¤¿¤À¤±¤Ç¤ÏÉÔ½½Ê¬¤À¤«¤é¤Ç¤¢¤ë)¡£
178 .SH ´ØÏ¢¹àÌÜ
179 .BR mount (2),
180 .BR path_resolution (7),
181 .BR mount (8),
182 .BR umount (8)