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
6e16552d
Commit
6e16552d
authored
Sep 08, 2013
by
Christian Seiler
Committed by
Stéphane Graber
Sep 10, 2013
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add cgroup.pattern global configuration option
Signed-off-by:
Christian Seiler
<
christian@iwakd.de
>
Signed-off-by:
Serge Hallyn
<
serge.hallyn@ubuntu.com
>
parent
d0386d66
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
1 deletion
+10
-1
configure.ac
configure.ac
+7
-0
Makefile.am
src/lxc/Makefile.am
+2
-1
utils.c
src/lxc/utils.c
+1
-0
No files found.
configure.ac
View file @
6e16552d
...
@@ -260,6 +260,12 @@ AC_ARG_WITH([rootfs-path],
...
@@ -260,6 +260,12 @@ AC_ARG_WITH([rootfs-path],
[--with-rootfs-path=dir],
[--with-rootfs-path=dir],
[lxc rootfs mount point]
[lxc rootfs mount point]
)], [], [with_rootfs_path=['${libdir}/lxc/rootfs']])
)], [], [with_rootfs_path=['${libdir}/lxc/rootfs']])
# cgroup pattern specification
AC_ARG_WITH([cgroup-pattern],
[AC_HELP_STRING(
[--with-cgroup-pattern=pattern],
[pattern for container cgroups]
)], [], [with_cgroup_pattern=['/lxc/%n']])
# Container log path. By default, use $lxcpath.
# Container log path. By default, use $lxcpath.
AC_MSG_CHECKING([Whether to place logfiles in container config path])
AC_MSG_CHECKING([Whether to place logfiles in container config path])
...
@@ -303,6 +309,7 @@ AS_AC_EXPAND(LXCTEMPLATEDIR, "$datadir/lxc/templates")
...
@@ -303,6 +309,7 @@ AS_AC_EXPAND(LXCTEMPLATEDIR, "$datadir/lxc/templates")
AS_AC_EXPAND(LXCHOOKDIR, "$datadir/lxc/hooks")
AS_AC_EXPAND(LXCHOOKDIR, "$datadir/lxc/hooks")
AS_AC_EXPAND(LXCINITDIR, "$libexecdir")
AS_AC_EXPAND(LXCINITDIR, "$libexecdir")
AS_AC_EXPAND(LOGPATH, "$with_log_path")
AS_AC_EXPAND(LOGPATH, "$with_log_path")
AC_SUBST(DEFAULT_CGROUP_PATTERN, ["$with_cgroup_pattern"])
# Check for some standard kernel headers
# Check for some standard kernel headers
AC_CHECK_HEADERS([linux/unistd.h linux/netlink.h linux/genetlink.h],
AC_CHECK_HEADERS([linux/unistd.h linux/netlink.h linux/genetlink.h],
...
...
src/lxc/Makefile.am
View file @
6e16552d
...
@@ -100,7 +100,8 @@ AM_CFLAGS=-I$(top_srcdir)/src \
...
@@ -100,7 +100,8 @@ AM_CFLAGS=-I$(top_srcdir)/src \
-DLOGPATH
=
\"
$(LOGPATH)
\"
\
-DLOGPATH
=
\"
$(LOGPATH)
\"
\
-DLXC_DEFAULT_CONFIG
=
\"
$(LXC_DEFAULT_CONFIG)
\"
\
-DLXC_DEFAULT_CONFIG
=
\"
$(LXC_DEFAULT_CONFIG)
\"
\
-DLXC_USERNIC_DB
=
\"
$(LXC_USERNIC_DB)
\"
\
-DLXC_USERNIC_DB
=
\"
$(LXC_USERNIC_DB)
\"
\
-DLXC_USERNIC_CONF
=
\"
$(LXC_USERNIC_CONF)
\"
-DLXC_USERNIC_CONF
=
\"
$(LXC_USERNIC_CONF)
\"
\
-DDEFAULT_CGROUP_PATTERN
=
\"
$(DEFAULT_CGROUP_PATTERN)
\"
if
ENABLE_APPARMOR
if
ENABLE_APPARMOR
AM_CFLAGS
+=
-DHAVE_APPARMOR
AM_CFLAGS
+=
-DHAVE_APPARMOR
...
...
src/lxc/utils.c
View file @
6e16552d
...
@@ -225,6 +225,7 @@ const char *lxc_global_config_value(const char *option_name)
...
@@ -225,6 +225,7 @@ const char *lxc_global_config_value(const char *option_name)
{
"lvm_vg"
,
DEFAULT_VG
},
{
"lvm_vg"
,
DEFAULT_VG
},
{
"zfsroot"
,
DEFAULT_ZFSROOT
},
{
"zfsroot"
,
DEFAULT_ZFSROOT
},
{
"lxcpath"
,
LXCPATH
},
{
"lxcpath"
,
LXCPATH
},
{
"cgroup.pattern"
,
DEFAULT_CGROUP_PATTERN
},
{
NULL
,
NULL
},
{
NULL
,
NULL
},
};
};
static
const
char
*
values
[
sizeof
(
options
)
/
sizeof
(
options
[
0
])]
=
{
0
};
static
const
char
*
values
[
sizeof
(
options
)
/
sizeof
(
options
[
0
])]
=
{
0
};
...
...
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