]> git.ipfire.org Git - thirdparty/lxc.git/commitdiff
increase /dev size to 500k ( issue #781)
authorMin Wang <mingewang@gmail.com>
Fri, 29 Jan 2016 20:40:28 +0000 (15:40 -0500)
committerStéphane Graber <stgraber@ubuntu.com>
Thu, 17 Nov 2016 22:50:45 +0000 (17:50 -0500)
Signed-off-by: Min Wang <mingewang@gmail.com>
doc/ja/lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
src/lxc/conf.c

index ce178cb4d41ba8c0f8aca06ca4b1f172902c685e..f90d603555e87b0024f8a935a8898f8812daaeef 100644 (file)
@@ -864,7 +864,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
        <filename>/dev</filename> to be set up as needed in the container
        rootfs.  If lxc.autodev is set to 1, then after mounting the container's
        rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
-       (limited to 100k) and fill in a minimal set of initial devices.
+       (limited to 500k) and fill in a minimal set of initial devices.
         This is generally required when starting a container containing
         a "systemd" based "init" but may be optional at other times.  Additional
         devices in the containers /dev directory may be created through the
@@ -872,7 +872,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
         -->
         デフォルトでは、lxc はコンテナの <filename>/dev</filename> 以下に fd, stdin, stdout, stderr のシンボリックリンクを作成しますが、自動的にはデバイスノードのエントリは作成しません。
         これは、コンテナの rootfs で必要な設定を行えるようにするものです。
-        lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (100k 制限の)。
+        lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (500k 制限の)。
         そして初期デバイスの最小限のセットを作成します。
         これは、"systemd" ベースの "init" 環境のコンテナを起動する時に通常必要ですが、他の環境の場合はオプショナルなものです。
         コンテナの /dev ディレクトリ内の追加デバイスは <option>lxc.hook.autodev</option> フックを使用して作成されます。
index 8efcb5e98cddb8bf738525dd9104490e0a22b85b..a04b885dcdbcf90821c09a4458708c4f2dfceb6e 100644 (file)
@@ -639,7 +639,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
         <filename>/dev</filename> to be set up as needed in the container
         rootfs.  If lxc.autodev is set to 1, then after mounting the container's
         rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
-        (limited to 100k) and fill in a minimal set of initial devices.
+        (limited to 500k) and fill in a minimal set of initial devices.
         This is generally required when starting a container containing
         a "systemd" based "init" but may be optional at other times.  Additional
         devices in the containers /dev directory may be created through the
index bdc6365faf5876aaf5e34eedf6f36eeac710e2b7..754c54d251c3e69d75433a816619b32014a5cfc3 100644 (file)
@@ -1461,7 +1461,7 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs, cons
                /* Only mount a tmpfs on here if we don't already a mount */
                if ( ! mount_check_fs( host_path, NULL ) ) {
                        DEBUG("Mounting tmpfs to %s", host_path );
-                       ret = safe_mount("none", path, "tmpfs", 0, "size=100000,mode=755", rootfs->path ? rootfs->mount : NULL);
+                       ret = safe_mount("none", path, "tmpfs", 0, "size=500000,mode=755", rootfs->path ? rootfs->mount : NULL);
                } else {
                        /* This allows someone to manually set up a mount */
                        DEBUG("Bind mounting %s to %s", host_path, path );