Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
lxc
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Chen Yisong
lxc
Commits
cb45908f
Commit
cb45908f
authored
Jan 29, 2016
by
Min Wang
Committed by
Stéphane Graber
Nov 17, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
increase /dev size to 500k ( issue #781)
Signed-off-by:
Min Wang
<
mingewang@gmail.com
>
parent
1f907acd
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
4 deletions
+4
-4
lxc.container.conf.sgml.in
doc/ja/lxc.container.conf.sgml.in
+2
-2
lxc.container.conf.sgml.in
doc/lxc.container.conf.sgml.in
+1
-1
conf.c
src/lxc/conf.c
+1
-1
No files found.
doc/ja/lxc.container.conf.sgml.in
View file @
cb45908f
...
@@ -864,7 +864,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -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
<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. If lxc.autodev is set to 1, then after mounting the container's
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
(limited to
1
00k) and fill in a minimal set of initial devices.
(limited to
5
00k) and fill in a minimal set of initial devices.
This is generally required when starting a container containing
This is generally required when starting a container containing
a "systemd" based "init" but may be optional at other times. Additional
a "systemd" based "init" but may be optional at other times. Additional
devices in the containers /dev directory may be created through the
devices in the containers /dev directory may be created through the
...
@@ -872,7 +872,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
...
@@ -872,7 +872,7 @@ by KATOH Yasufumi <karma at jazz.email.ne.jp>
-->
-->
デフォルトでは、lxc はコンテナの <filename>/dev</filename> 以下に fd, stdin, stdout, stderr のシンボリックリンクを作成しますが、自動的にはデバイスノードのエントリは作成しません。
デフォルトでは、lxc はコンテナの <filename>/dev</filename> 以下に fd, stdin, stdout, stderr のシンボリックリンクを作成しますが、自動的にはデバイスノードのエントリは作成しません。
これは、コンテナの rootfs で必要な設定を行えるようにするものです。
これは、コンテナの rootfs で必要な設定を行えるようにするものです。
lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (
1
00k 制限の)。
lxc.autodev が 1 に設定されている場合、コンテナの rootfs をマウントした後、LXC は新しい tmpfs を <filename>/dev</filename> 以下にマウントします (
5
00k 制限の)。
そして初期デバイスの最小限のセットを作成します。
そして初期デバイスの最小限のセットを作成します。
これは、"systemd" ベースの "init" 環境のコンテナを起動する時に通常必要ですが、他の環境の場合はオプショナルなものです。
これは、"systemd" ベースの "init" 環境のコンテナを起動する時に通常必要ですが、他の環境の場合はオプショナルなものです。
コンテナの /dev ディレクトリ内の追加デバイスは <option>lxc.hook.autodev</option> フックを使用して作成されます。
コンテナの /dev ディレクトリ内の追加デバイスは <option>lxc.hook.autodev</option> フックを使用して作成されます。
...
...
doc/lxc.container.conf.sgml.in
View file @
cb45908f
...
@@ -639,7 +639,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
...
@@ -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
<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. If lxc.autodev is set to 1, then after mounting the container's
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
rootfs LXC will mount a fresh tmpfs under <filename>/dev</filename>
(limited to
1
00k) and fill in a minimal set of initial devices.
(limited to
5
00k) and fill in a minimal set of initial devices.
This is generally required when starting a container containing
This is generally required when starting a container containing
a "systemd" based "init" but may be optional at other times. Additional
a "systemd" based "init" but may be optional at other times. Additional
devices in the containers /dev directory may be created through the
devices in the containers /dev directory may be created through the
...
...
src/lxc/conf.c
View file @
cb45908f
...
@@ -1461,7 +1461,7 @@ static int mount_autodev(const char *name, const struct lxc_rootfs *rootfs, cons
...
@@ -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 */
/* Only mount a tmpfs on here if we don't already a mount */
if
(
!
mount_check_fs
(
host_path
,
NULL
)
)
{
if
(
!
mount_check_fs
(
host_path
,
NULL
)
)
{
DEBUG
(
"Mounting tmpfs to %s"
,
host_path
);
DEBUG
(
"Mounting tmpfs to %s"
,
host_path
);
ret
=
safe_mount
(
"none"
,
path
,
"tmpfs"
,
0
,
"size=
1
00000,mode=755"
,
rootfs
->
path
?
rootfs
->
mount
:
NULL
);
ret
=
safe_mount
(
"none"
,
path
,
"tmpfs"
,
0
,
"size=
5
00000,mode=755"
,
rootfs
->
path
?
rootfs
->
mount
:
NULL
);
}
else
{
}
else
{
/* This allows someone to manually set up a mount */
/* This allows someone to manually set up a mount */
DEBUG
(
"Bind mounting %s to %s"
,
host_path
,
path
);
DEBUG
(
"Bind mounting %s to %s"
,
host_path
,
path
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment