File: umount.2

package info (click to toggle)
manpages-ja 0.5.0.0.20100315-1
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 21,156 kB
  • ctags: 1
  • sloc: sh: 13,935; perl: 157; makefile: 114
file content (176 lines) | stat: -rw-r--r-- 5,003 bytes parent folder | download
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
.\" Hey Emacs! This file is -*- nroff -*- source.
.\"
.\" Copyright (C) 1993 Rickard E. Faith <faith@cs.unc.edu>
.\" and Copyright (C) 1994 Andries E. Brouwer <aeb@cwi.nl>
.\" and Copyright (C) 2002, 2005 Michael Kerrisk <mtk.manpages@gmail.com>
.\"
.\" Permission is granted to make and distribute verbatim copies of this
.\" manual provided the copyright notice and this permission notice are
.\" preserved on all copies.
.\"
.\" Permission is granted to copy and distribute modified versions of this
.\" manual under the conditions for verbatim copying, provided that the
.\" entire resulting derived work is distributed under the terms of a
.\" permission notice identical to this one.
.\"
.\" Since the Linux kernel and libraries are constantly changing, this
.\" manual page may be incorrect or out-of-date.  The author(s) assume no
.\" responsibility for errors or omissions, or for damages resulting from
.\" the use of the information contained herein.  The author(s) may not
.\" have taken the same level of care in the production of this manual,
.\" which is licensed free of charge, as they might when working
.\" professionally.
.\"
.\" Formatted or processed versions of this manual, if unaccompanied by
.\" the source, must acknowledge the copyright and authors of this work.
.\"
.\" 2008-10-06, mtk: Created this as a new page by splitting
.\"     umount/umount2 material out of mount.2
.\"
.\" Japanese Version Copyright (c) 2008  Akihiro MOTOKI
.\"         all rights reserved.
.\" Translated 2008-11-20, Akihiro MOTOKI <amotoki@dd.iij4u.or.jp>, LDP v3.13
.\" 
.TH UMOUNT 2 2008-10-06 "Linux" "Linux Programmer's Manual"
.SH ̾
umount, umount2 \- ե륷ƥ򥢥ޥȤ
.SH 
.nf
.B "#include <sys/mount.h>"
.sp
.BI "int umount(const char *" target );
.sp
.BI "int umount2(const char *" target ", int " flags );
.fi
.SH 
.BR umount ()

.BR umount2 ()

.I target
˥ޥȤƤ (Ǿ̤) ե륷ƥ򳰤
.\" Note: the kernel naming differs from the glibc naming
.\" umount2 is the glibc name for what the kernel now calls umount
.\" and umount is the glibc name for oldumount

ե륷ƥΥޥȤԤˤϡ
Ŭڤʸ (Linux Ǥ
.B CAP_SYS_ADMIN
ѥӥƥ) ɬפǤ롣

Linux 2.1.116 顢
.BR umount2 ()
ƥॳ뤬ɲä줿
.BR umount ()
Ʊͤ
.I target
򥢥ޥȤ뤬
.I flags
ɲäƤꡢο񤤤Ǥ롣
.TP
.BR MNT_FORCE " (2.1.116 ʹ)"
 (busy) Ǥ⶯Ū˥ޥȤ¹Ԥ롣
Ԥȥǡ򼺤ǽ롣
(NFS ޥ)
.TP
.BR MNT_DETACH " (2.4.11 ʹ)"
ٱ䥢ޥȤԤޥȥݥȤФ뿷Υ
ԲǽȤʤꡢºݤΥޥȤϥޥȥݥȤӥ
ʤʤäǹԤ
.TP
.BR MNT_EXPIRE " (Linux 2.6.8 ʹ)"
ޥȥݥȤ˴ڤΰĤ롣
ޥȥݥȤ߻Ǥʤ硢Υե饰Ĥ
.BR umount2 ()
ƸƤӽФ
.B EAGAIN
顼ǼԤ뤬ޥȥݥȤˤϴڤ (expire)
ΰĤ롣
ΥޥȥݥȤϤ줫Υץʤ¤
ڤΰĤޤޤȤʤ롣
.B MNT_EXPIRE
Ĥ
.BR umount2 ()
ƤӽФȡڤΰΤĤޥȥݥȤ
ޥȤ롣
Υե饰
.B MNT_FORCE
.B MNT_DETACH
Ʊ˻ꤹ뤳ȤϤǤʤ
.SH ֤
 0 ֤롣
顼ξ硢\-1 ֤ꡢ
.I errno
顼Ƥˤäꤵ롣
.SH 顼
ʲ˼顼ϡե륷ƥ˰¸ʤΤǤ롣
줾Υե륷ƥॿפˤϸͭΥ顼¸ߤ礬ꡢ
ȼư򤹤뤳Ȥ⤢롣ܤϥͥΥ򸫤ߤ
.TP
.B EAGAIN
.B MNT_EXPIRE
.BR umount2 ()
θƤӽФǡ̤ѤΥե륷ƥ˴ڤΰ
Ĥ뤳ȤǤ
.TP
.B EBUSY
 (busy) Τᡢ
.I target
򥢥ޥȤǤʤä
.TP
.B EFAULT
.I target
桼ɥ쥹֤γؤƤ롣
.TP
.B EINVAL
.I target
ޥȥݥȤǤϤʤ
ޤϡ
.BR umount2 ()
ǡ
.B MNT_EXPIRE
ꤵ줿
.BR umount2 ()
ǡ
.B MNT_DETACH

.B MNT_FORCE
Ʊ˻ꤵ줿
.TP
.B ENAMETOOLONG
ѥ̾Ĺ
.B MAXPATHLEN
Ĺä
.TP
.B ENOENT
ѥ̾Ǥ롣⤷ϻꤵ줿ѥ¸ߤʤ
.TP
.B ENOMEM
ͥ뤬ե̾ǡ򥳥ԡ뤿ζڡݤǤʤä
.TP
.B EPERM
ƤӽФɬפʸ¤äƤʤ
.SH 
δؿ Linux ͭδؿǤꡢܿθץǤ
Ѥ٤Ǥʤ
.SH 

.BR umount ()
ؿ \fIumount(device)\fP ηǸƤӽФ졢
֥åǥХʳꤷƸƤӽФ
.B ENOTBLK
֤
Linux 0.98p4 ǡ̵̾ǥХ (anonymous device) б뤿
\fIumount(dir)\fP ηǤθƤӽФä줿
Linux 2.3.99-pre7 ǡ\fIumount(device)\fP Ϻ졢
\fIumount(dir)\fP Ĥ줿
(ĤΥǥХʣΰ֤˥ޥȽ褦ˤʤäᡢ
ǥХꤷǤԽʬǤ)
.SH Ϣ
.BR mount (2),
.BR path_resolution (7),
.BR mount (8),
.BR umount (8)