[lxc-devel] [PATCH] doc: Add options of 'loop' backingstore to lxc-create(1)
Signed-off-by: KATOH Yasufumi ka...@jazz.email.ne.jp --- doc/ja/lxc-create.sgml.in | 6 ++ doc/lxc-create.sgml.in| 3 +++ 2 files changed, 9 insertions(+) diff --git a/doc/ja/lxc-create.sgml.in b/doc/ja/lxc-create.sgml.in index 4525817..f8b6064 100644 --- a/doc/ja/lxc-create.sgml.in +++ b/doc/ja/lxc-create.sgml.in @@ -200,6 +200,12 @@ by KATOH Yasufumi karma at jazz.email.ne.jp replaceable--fssize SIZE/replaceable はデフォルト値である 1G の代わりに SIZE で指定したサイズで LV を作成します。 /para para + !-- + If backingstore is 'loop', you can use replaceable#045;#045;fstype FSTYPE/replaceable and replaceable#045;#045;fssize SIZE/replaceable as 'lvm'. The default values for these options are the same as 'lvm'. + -- + backingstore が 'loop' の場合、'lvm' と同様に replaceable--fstype FSTYPE/replaceable と replaceable--fssize SIZE/replaceable が使えます。これらの値のデフォルト値は 'lvm' の場合と同じです。 + /para + para !-- If backingstore is 'best', then lxc will try, in order, btrfs, zfs, lvm, and finally a directory backing store. diff --git a/doc/lxc-create.sgml.in b/doc/lxc-create.sgml.in index 683067b..3339bf3 100644 --- a/doc/lxc-create.sgml.in +++ b/doc/lxc-create.sgml.in @@ -155,6 +155,9 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA filesystem) of size SIZE rather than the default, which is 1G. /para para + If backingstore is 'loop', you can use replaceable--fstype FSTYPE/replaceable and replaceable--fssize SIZE/replaceable as 'lvm'. The default values for these options are the same as 'lvm'. + /para + para If backingstore is 'best', then lxc will try, in order, btrfs, zfs, lvm, and finally a directory backing store. /para -- 2.2.1 ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [PATCH] seccomp: add ppc support
This patch enables seccomp support for LXC containers running on PowerPC architectures. It is based on the latest PowerPC support added to libseccomp, on the working-ppc64 branch [1]. Libseccomp has been tested on ppc, ppc64 and ppc64le architectures. LXC with seccomp support has been tested on ppc and ppc64 architectures, using the default seccomp policy example files delivered with the LXC package. [1] https://github.com/seccomp/libseccomp/commits/working-ppc64 Signed-off-by: Bogdan Purcareata bogdan.purcare...@freescale.com --- src/lxc/seccomp.c | 42 ++ 1 file changed, 42 insertions(+) diff --git a/src/lxc/seccomp.c b/src/lxc/seccomp.c index 3ba6c9a..0e2310f 100644 --- a/src/lxc/seccomp.c +++ b/src/lxc/seccomp.c @@ -121,6 +121,9 @@ enum lxc_hostarch_t { lxc_seccomp_arch_i386, lxc_seccomp_arch_amd64, lxc_seccomp_arch_arm, + lxc_seccomp_arch_ppc64, + lxc_seccomp_arch_ppc64le, + lxc_seccomp_arch_ppc, lxc_seccomp_arch_unknown = 999, }; @@ -137,6 +140,12 @@ int get_hostarch(void) return lxc_seccomp_arch_amd64; else if (strncmp(uts.machine, armv7, 5) == 0) return lxc_seccomp_arch_arm; + else if (strncmp(uts.machine, ppc64le, 7) == 0) + return lxc_seccomp_arch_ppc64le; + else if (strncmp(uts.machine, ppc64, 5) == 0) + return lxc_seccomp_arch_ppc64; + else if (strncmp(uts.machine, ppc, 3) == 0) + return lxc_seccomp_arch_ppc; return lxc_seccomp_arch_unknown; } @@ -150,6 +159,9 @@ scmp_filter_ctx get_new_ctx(enum lxc_hostarch_t n_arch, uint32_t default_policy_ case lxc_seccomp_arch_i386: arch = SCMP_ARCH_X86; break; case lxc_seccomp_arch_amd64: arch = SCMP_ARCH_X86_64; break; case lxc_seccomp_arch_arm: arch = SCMP_ARCH_ARM; break; + case lxc_seccomp_arch_ppc64le: arch = SCMP_ARCH_PPC64LE; break; + case lxc_seccomp_arch_ppc64: arch = SCMP_ARCH_PPC64; break; + case lxc_seccomp_arch_ppc: arch = SCMP_ARCH_PPC; break; default: return NULL; } @@ -343,6 +355,36 @@ static int parse_config_v2(FILE *f, char *line, struct lxc_conf *conf) cur_rule_arch = lxc_seccomp_arch_arm; } #endif +#ifdef SCMP_ARCH_PPC64LE + else if (strcmp(line, [ppc64le]) == 0 || + strcmp(line, [PPC64LE]) == 0) { + if (native_arch != lxc_seccomp_arch_ppc64le) { + cur_rule_arch = lxc_seccomp_arch_unknown; + continue; + } + cur_rule_arch = lxc_seccomp_arch_ppc64le; + } +#endif +#ifdef SCMP_ARCH_PPC64 + else if (strcmp(line, [ppc64]) == 0 || + strcmp(line, [PPC64]) == 0) { + if (native_arch != lxc_seccomp_arch_ppc64) { + cur_rule_arch = lxc_seccomp_arch_unknown; + continue; + } + cur_rule_arch = lxc_seccomp_arch_ppc64; + } +#endif +#ifdef SCMP_ARCH_PPC + else if (strcmp(line, [ppc]) == 0 || + strcmp(line, [PPC]) == 0) { + if (native_arch != lxc_seccomp_arch_ppc) { + cur_rule_arch = lxc_seccomp_arch_unknown; + continue; + } + cur_rule_arch = lxc_seccomp_arch_ppc; + } +#endif else goto bad_arch; -- 2.1.4 ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
Re: [lxc-devel] lxc-top patch: limit container name to 18 characters
On Mon, Mar 09, 2015 at 08:01:55PM +0100, Bostjan Skufca wrote: Here: https://github.com/lxc/lxc/pull/463 Would you prefer if as patch on mailing list? b. This has now been merged. -- Stéphane Graber Ubuntu developer http://www.ubuntu.com signature.asc Description: Digital signature ___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxc/lxc] d1dd91: add bdevtype to lxc create procedure
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: d1dd9113762786a623cb5463821c8b3de42cda30 https://github.com/lxc/lxc/commit/d1dd9113762786a623cb5463821c8b3de42cda30 Author: Bieiaievskyi Sergey s.bieliaievs...@sethq.com Date: 2015-03-10 (Tue, 10 Mar 2015) Changed paths: M src/python-lxc/lxc.c M src/python-lxc/lxc/__init__.py Log Message: --- add bdevtype to lxc create procedure Signed-off-by: Bieliaievskyi Sergey magela...@gmail.com Commit: 24f97cf71df6ba3254b0250f7a637527c0215fdc https://github.com/lxc/lxc/commit/24f97cf71df6ba3254b0250f7a637527c0215fdc Author: Stéphane Graber stgra...@stgraber.org Date: 2015-03-10 (Tue, 10 Mar 2015) Changed paths: M src/python-lxc/lxc.c M src/python-lxc/lxc/__init__.py Log Message: --- Merge pull request #464 from pymag09/lxccreate Lxccreate: add a backing store type (bdevtype) to a python create function Compare: https://github.com/lxc/lxc/compare/214b8bfce478...24f97cf71df6___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel
[lxc-devel] [lxc/lxc] 9a6d86: lxc-top: limit container name to 18 characters
Branch: refs/heads/master Home: https://github.com/lxc/lxc Commit: 9a6d86dcc78c3e3a755696d2a7e71ef40c9577f0 https://github.com/lxc/lxc/commit/9a6d86dcc78c3e3a755696d2a7e71ef40c9577f0 Author: Bostjan Skufca bost...@a2o.si Date: 2015-03-10 (Tue, 10 Mar 2015) Changed paths: M src/lxc/lxc_top.c Log Message: --- lxc-top: limit container name to 18 characters Signed-off-by: Bostjan Skufca bost...@a2o.si Commit: abda570e25f7fea1331ec3f2f14ed94c9635a61b https://github.com/lxc/lxc/commit/abda570e25f7fea1331ec3f2f14ed94c9635a61b Author: Stéphane Graber stgra...@stgraber.org Date: 2015-03-10 (Tue, 10 Mar 2015) Changed paths: M src/lxc/lxc_top.c Log Message: --- Merge pull request #463 from bostjan/bugfix/lxctop-limit-name-width lxc-top: limit container name to 18 characters Compare: https://github.com/lxc/lxc/compare/ea4cadbfac47...abda570e25f7___ lxc-devel mailing list lxc-devel@lists.linuxcontainers.org http://lists.linuxcontainers.org/listinfo/lxc-devel