1 .\" Hey Emacs! This file is -*- nroff -*- source.
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>
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.
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.
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
24 .\" Formatted or processed versions of this manual, if unaccompanied by
25 .\" the source, must acknowledge the copyright and authors of this work.
27 .\" 2008-10-06, mtk: Created this as a new page by splitting
28 .\" umount/umount2 material out of mount.2
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
34 .TH UMOUNT 2 2009-09-03 "Linux" "Linux Programmer's Manual"
36 umount, umount2 \- ファイルシステムをアンマウントする
39 .B "#include <sys/mount.h>"
41 .BI "int umount(const char *" target );
43 .BI "int umount2(const char *" target ", int " flags );
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
69 が追加されており、操作時の振る舞いを制御できる。
71 .BR MNT_FORCE " (2.1.116 以降)"
72 使用中 (busy) でも強制的にアンマウントを実行する。
76 .BR MNT_DETACH " (2.4.11 以降)"
77 遅延アンマウントを行う。マウントポイントに対する新規のアクセスは
78 不可能となり、実際のアンマウントはマウントポイントがビジーで
81 .BR MNT_EXPIRE " (Linux 2.6.8 以降)"
83 マウントポイントが現在使用中でない場合、このフラグをつけて
87 エラーで失敗するが、マウントポイントには期限切れ (expire)
89 そのマウントポイントはいずれかのプロセスがアクセスしない限り
95 を呼び出すと、期限切れの印のついたマウントポイントが
108 以下に示すエラーは、ファイルシステムに依存しないものである。
109 それぞれのファイルシステムタイプには固有のエラーが存在する場合があり、
110 独自の動作をすることもある。詳しくはカーネルのソースを見て欲しい。
116 の呼び出しで、正常に未使用のファイルシステムに期限切れの印を
149 パス名が空である。もしくは指定されたパスが存在しない。
152 カーネルがファイル名やデータをコピーするための空きページを確保できなかった。
157 .\" http://sourceware.org/bugzilla/show_bug.cgi?id=10092
161 はバージョン 2.11 以降の glibc でのみ利用できる。
163 この関数は Linux 固有の関数であり、移植を考慮したプログラムでは
168 関数は \fIumount(device)\fP の形で呼び出され、
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 デバイスを指定しただけでは不十分だからである)。
180 .BR path_resolution (7),