From: Akihiro MOTOKI Date: Wed, 7 Jan 2015 06:16:49 +0000 (+0900) Subject: Complete namespaces.7 X-Git-Tag: LDP-3.76-final~19 X-Git-Url: http://git.osdn.net/view?p=linuxjm%2FLDP_man-pages.git;a=commitdiff_plain;h=3e8d8f93649491c08c9a6b46887696b774ca02bd Complete namespaces.7 --- diff --git a/draft/man7/namespaces.7 b/draft/man7/namespaces.7 index 4fd05dd4..676f24e1 100644 --- a/draft/man7/namespaces.7 +++ b/draft/man7/namespaces.7 @@ -33,12 +33,9 @@ .SH 名前 namespaces \- Linux 名前空間の概要 .SH 説明 -A namespace wraps a global system resource in an abstraction that makes it -appear to the processes within the namespace that they have their own -isolated instance of the global resource. Changes to the global resource -are visible to other processes that are members of the namespace, but are -invisible to other processes. One use of namespaces is to implement -containers. +名前空間は、 グローバルシステムリソースを抽象化層で覆うことで、 名前空間内のプロセスに対して、 +自分たちが専用の分離されたグローバルリソースを持っているかのように見せる仕組みである。 グローバルリソースへの変更は、 +名前空間のメンバーである他のプロセスには見えるが、 それ以外のプロセスには見えない。 名前空間の一つの利用方法はコンテナーの実装である。 Linux では以下の名前空間が提供される。 .TS @@ -182,23 +179,19 @@ IPv6 のプロトコルスタック、 IP ルーティングテーブル、 フ .\" ネットワーク名前空間を使用するには、設定 \fBCONFIG_NET_NS\fP が有効になったカーネルが必要である。 .SS "マウント名前空間 (CLONE_NEWNS)" -Mount namespaces isolate the set of filesystem mount points, meaning that -processes in different mount namespaces can have different views of the -filesystem hierarchy. The set of mounts in a mount namespace is modified -using \fBmount\fP(2) and \fBumount\fP(2). - -The \fI/proc/[pid]/mounts\fP file (present since Linux 2.4.19) lists all the -filesystems currently mounted in the process's mount namespace. The format -of this file is documented in \fBfstab\fP(5). Since kernel version 2.6.15, -this file is pollable: after opening the file for reading, a change in this -file (i.e., a filesystem mount or unmount) causes \fBselect\fP(2) to mark the -file descriptor as readable, and \fBpoll\fP(2) and \fBepoll_wait\fP(2) mark the -file as having an error condition. - -The \fI/proc/[pid]/mountstats\fP file (present since Linux 2.6.17) exports -information (statistics, configuration information) about the mount points -in the process's mount namespace. This file is only readable by the owner -of the process. Lines in this file have the form: +マウント名前空間はファイルシステムのマウントポイントの集合を分離する。 +つまり、別のマウント名前空間のプロセスには別のファイルシステム階層が見えるということである。 マウント名前空間内のマウントの集合は +\fBmount\fP(2) と \fBumount\fP(2) で変更される。 + +\fI/proc/[pid]/mounts\fP ファイル (Linux 2.4.19 以降に存在) は、 +そのプロセスのマウント名前空間で現在マウントされている全ファイルシステムの一覧を表示する。 このファイルのフォーマットは \fBfstab\fP(5) +に記載されている。 カーネルバージョン 2.6.15 以降では、このファイルをポーリングすることができる。 +すなわち、このファイルを読み出し用にオープンした後、 このファイルの変化 (ファイルシステムのマウントやアンマウント) が発生すると、 +\fBselect\fP(2) はファイルディスクリプタが読み出し可能になったと印を付け、 \fBpoll\fP(2) や \fBepoll_wait\fP(2) +はファイルがエラー状態になったかのように印を付ける。 + +\fI/proc/[pid]/mountstats\fP ファイル (Linux 2.6.17 以降に存在) は、 そのプロセスのマウントポイントに関する情報 +(統計情報、設定情報) を公開する。 このファイルはプロセスの所有者だけが読み出し可能である。 このファイルの各行は以下の形式である。 .RS .in 12 .nf diff --git a/po4a/process/po/ja.po b/po4a/process/po/ja.po index 0656f657..564ecf59 100644 --- a/po4a/process/po/ja.po +++ b/po4a/process/po/ja.po @@ -7,7 +7,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "POT-Creation-Date: 2015-01-06 03:03+0900\n" -"PO-Revision-Date: 2015-01-06 04:29+0900\n" +"PO-Revision-Date: 2015-01-06 14:37+0900\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" "Language: \n" @@ -9217,7 +9217,7 @@ msgid "" "are visible to other processes that are members of the namespace, but are " "invisible to other processes. One use of namespaces is to implement " "containers." -msgstr "" +msgstr "名前空間は、 グローバルシステムリソースを抽象化層で覆うことで、 名前空間内のプロセスに対して、 自分たちが専用の分離されたグローバルリソースを持っているかのように見せる仕組みである。 グローバルリソースへの変更は、 名前空間のメンバーである他のプロセスには見えるが、 それ以外のプロセスには見えない。 名前空間の一つの利用方法はコンテナーの実装である。" #. type: Plain text #: build/C/man7/namespaces.7:39 @@ -9620,7 +9620,7 @@ msgid "" "processes in different mount namespaces can have different views of the " "filesystem hierarchy. The set of mounts in a mount namespace is modified " "using B(2) and B(2)." -msgstr "" +msgstr "マウント名前空間はファイルシステムのマウントポイントの集合を分離する。 つまり、別のマウント名前空間のプロセスには別のファイルシステム階層が見えるということである。 マウント名前空間内のマウントの集合は B(2) と B(2) で変更される。" #. type: Plain text #: build/C/man7/namespaces.7:294 @@ -9632,7 +9632,7 @@ msgid "" "file (i.e., a filesystem mount or unmount) causes B(2) はファイルディスクリプタが読み出し可能になったと印を付け、 B(2) や B(2) はファイルがエラー状態になったかのように印を付ける。" #. type: Plain text #: build/C/man7/namespaces.7:302 @@ -9641,7 +9641,7 @@ msgid "" "information (statistics, configuration information) about the mount points " "in the process's mount namespace. This file is only readable by the owner " "of the process. Lines in this file have the form:" -msgstr "" +msgstr "I ファイル (Linux 2.6.17 以降に存在) は、 そのプロセスのマウントポイントに関する情報 (統計情報、設定情報) を公開する。 このファイルはプロセスの所有者だけが読み出し可能である。 このファイルの各行は以下の形式である。" #. type: Plain text #: build/C/man7/namespaces.7:308 diff --git a/stats/process b/stats/process index 47859302..d5675f91 100644 --- a/stats/process +++ b/stats/process @@ -1,6 +1,5 @@ # pagename,#complete,#remaining,#all cpuset.7,102,212,314 getrlimit.2,115,8,123 -namespaces.7,87,4,91 pid_namespaces.7,25,29,54 user_namespaces.7,77,91,168 diff --git a/untrans.html b/untrans.html index 43f770a8..550feeee 100644 --- a/untrans.html +++ b/untrans.html @@ -71,7 +71,6 @@ process cpuset.7212/31432.48 getrlimit.28/12393.50 -namespaces.74/9195.60 pid_namespaces.729/5446.30 user_namespaces.791/16845.83 sched @@ -117,6 +116,6 @@ unistd execve.26/17396.53 fcntl.246/24180.91 -Total 87 pages +Total 86 pages