[Devel] [PATCH rh7 v2] ve/devpts: Support per-VE mount namespace

2015-07-21 Thread Cyrill Gorcunov
Modern systemd based containers (such as fedora-21, centos-7) already mounting initial devpts filesystem with @newinstance option but it turned out that ubuntu-14 lts doesn't, which makes restore procedure to fail because we're using get_exec_env as a namespace mark and the kernel mounts new superb

Re: [Devel] [PATCH rh7] ve/tty: vt -- Implement per VE support for virtual consoles

2015-07-21 Thread Vladimir Davydov
On Tue, Jul 21, 2015 at 07:25:06PM +0300, Cyrill Gorcunov wrote: [...] > Yes. Current model is horrible (if you have a few containers, each > gonna be listed inside /proc/tty/drivers instead of single instance > ;) > > I see what you mean and I completely agree, but this require > rework of driver

Re: [Devel] [PATCH rh7] ve/tty: vt -- Implement per VE support for virtual consoles

2015-07-21 Thread Cyrill Gorcunov
On Tue, Jul 21, 2015 at 07:17:19PM +0300, Vladimir Davydov wrote: > > > > Well, there are a number of problems raises > > > > 1) We need own mapping for char device numbers with predefined names > > (so they won't conflict with existing devices and their names would > > allow userspace

Re: [Devel] [PATCH rh7] ve/tty: vt -- Implement per VE support for virtual consoles

2015-07-21 Thread Vladimir Davydov
On Tue, Jul 21, 2015 at 06:35:13PM +0300, Cyrill Gorcunov wrote: > On Tue, Jul 21, 2015 at 06:18:00PM +0300, Vladimir Davydov wrote: > > > -#define VZ_VT_MAX_DEVS 12 > > > - struct tty_driver *vz_vt_driver; > > > - struct tty_struct *vz_tty_vt[VZ_VT_MAX_DEVS]; > > > - > > > -

Re: [Devel] [PATCH rh7] ve/tty: vt -- Implement per VE support for virtual consoles

2015-07-21 Thread Cyrill Gorcunov
On Tue, Jul 21, 2015 at 06:18:00PM +0300, Vladimir Davydov wrote: > > -#define VZ_VT_MAX_DEVS 12 > > - struct tty_driver *vz_vt_driver; > > - struct tty_struct *vz_tty_vt[VZ_VT_MAX_DEVS]; > > - > > - struct tty_struct *vz_tty_conm; > > - struct tty_struct

[Devel] [PATCH RHEL7 COMMIT] ve/vznetstat: Move VE networks statistics allocation into a commaon place

2015-07-21 Thread Konstantin Khorenko
The commit is pushed to "branch-rh7-3.10.0-123.1.2-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh7-3.10.0-123.1.2.vz7.5.26 --> commit 6667c891112e6afc9c9d16f839b02b64493e50b5 Author: Cyrill Gorcunov Date: Tue Jul 21 19:22:33 2015 +0400 ve/vznetstat: Move V

Re: [Devel] [PATCH rh7] ve/tty: vt -- Implement per VE support for virtual consoles

2015-07-21 Thread Vladimir Davydov
On Tue, Jul 14, 2015 at 04:53:54PM +0300, Cyrill Gorcunov wrote: [...] > @@ -66,12 +67,11 @@ struct ve_struct { > struct binfmt_misc *binfmt_misc; > #endif > > -#define VZ_VT_MAX_DEVS 12 > - struct tty_driver *vz_vt_driver; > - struct tty_struct *vz_t

Re: [Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE

2015-07-21 Thread Cyrill Gorcunov
On Tue, Jul 21, 2015 at 03:52:14PM +0300, Vladimir Davydov wrote: > > > > As far as I understand if we revert these commits we would > > allow to mount host's devpts into container. At least I don't > > see how this would be prevented. > > # define devpts_mnt (get_exec_env()->devpts_mnt) I wan

Re: [Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE

2015-07-21 Thread Vladimir Davydov
On Tue, Jul 21, 2015 at 03:49:52PM +0300, Cyrill Gorcunov wrote: > On Tue, Jul 21, 2015 at 03:25:34PM +0300, Vladimir Davydov wrote: > > > + if (opts.newinstance && get_exec_env()->devpts_sb) { > > > root = mount_nodev(fs_type, flags, data, devpts_fill_super); > > > - else > > > + } else

Re: [Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE

2015-07-21 Thread Cyrill Gorcunov
On Tue, Jul 21, 2015 at 03:25:34PM +0300, Vladimir Davydov wrote: > > + if (opts.newinstance && get_exec_env()->devpts_sb) { > > root = mount_nodev(fs_type, flags, data, devpts_fill_super); > > - else > > + } else { > > + opts.newinstance = 0; > > root = moun

[Devel] [RH7 PATCH 3/3] ext4: update defragmentation codebase compile-fix

2015-07-21 Thread Dmitry Monakhov
base commit: 107926c10323f17ec683aee70d05eaf6a080c147 Signed-off-by: Dmitry Monakhov --- fs/ext4/extents.c | 18 +- fs/ext4/move_extent.c |2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/fs/ext4/extents.c b/fs/ext4/extents.c index 7e8a3d8..6efb87c

[Devel] [RH7 PATCH 2/3] compile fix for ext4-add-mfsync-support part2

2015-07-21 Thread Dmitry Monakhov
__sync_inode was removed in rh7-3.10.0-229.7.2 It is honest to simply disable mfsync in nojournal mode since we so not test nojournal mode at all. https://jira.sw.ru/browse/PSBM-34910 Signed-off-by: Dmitry Monakhov --- fs/ext4/fsync.c | 13 + 1 files changed, 1 insertions(+), 12

[Devel] [RH7 PATCH 1/3] compile fix for ext4-add-mfsync-support

2015-07-21 Thread Dmitry Monakhov
ext4_flush_unwritten_io was removed in rh7-3.10.0-229.7.2 https://jira.sw.ru/browse/PSBM-34909 Signed-off-by: Dmitry Monakhov --- fs/ext4/fsync.c |3 --- 1 files changed, 0 insertions(+), 3 deletions(-) diff --git a/fs/ext4/fsync.c b/fs/ext4/fsync.c index 99582b8..8235438 100644 --- a/fs/e

Re: [Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE

2015-07-21 Thread Vladimir Davydov
On Tue, Jul 21, 2015 at 01:23:51PM +0300, Cyrill Gorcunov wrote: > Modern systemd based containers (such as fedora-21, centos-7) already > mounting initial devpts filesystem with @newinstance option but it > turned out that ubuntu-14 lts doesn't, which makes restore procedure > to fail because we'r

[Devel] [PATCH rh7 v2] ve/devpts: Force devpts mounting to use @newinstance inside VE

2015-07-21 Thread Cyrill Gorcunov
Modern systemd based containers (such as fedora-21, centos-7) already mounting initial devpts filesystem with @newinstance option but it turned out that ubuntu-14 lts doesn't, which makes restore procedure to fail because we're using get_exec_env as a namespace mark and the kernel mounts new superb

Re: [Devel] [Q] iptables AH module api mismatch between -master and 1.4.7

2015-07-21 Thread Jan Engelhardt
On Wednesday 2015-07-15 14:15, Cyrill Gorcunov wrote: >Hello! Could you clarify please the following aspect: before the commit > > | commit 6944f2c8190f1c4319aeac748470c71b0ba45025 > >if the AH module has no --ahspi argument passed to iptables then it >became [0;0x] by default, but in -ma

Re: [Devel] [RFC rh7 v3] ve/vznetstat: Move VE networks statistics allocation into a commaon place

2015-07-21 Thread Vladimir Davydov
On Mon, Jul 20, 2015 at 11:53:57PM +0300, Cyrill Gorcunov wrote: > We have three modules serving network statictics: > > - vznetstat.ko > - ip_vznetstat.ko > - ip6_vznetstat.ko > > where ip6_vznetstat depends on ip_vznetstat and both depends on general > vznetstat > module. While vznetstat do