Re: [Devel] [PATCH RH9] ploop: simplify ploop_status

2021-10-22 Thread Kirill Tkhai
On 21.10.2021 21:32, Cyrill Gorcunov wrote: > From: Cyrill Gorcunov > > We can get rid of sprintf usage when encoding the status. > Just fill the string directly. > > Cc: Kirill Tkhai > Signed-off-by: Cyrill Gorcunov Acked-by: Kirill TKhai > --- > drivers/md/dm-ploop-target.c | 13 ++

[Devel] [PATCH RHEL9 COMMIT] Revert "sysctl: return -EINVAL if val violates minmax"

2021-10-22 Thread Konstantin Khorenko
The commit is pushed to "branch-rh9-5.14.vz9.1.x-ovz" and will appear at https://src.openvz.org/scm/ovz/vzkernel.git after rh9-5.14.0-4.vz9.10.15 --> commit e95d79f136fef16c7a0573122f52ed23321862d3 Author: Konstantin Khorenko Date: Fri Oct 22 12:44:34 2021 +0300 Revert "sysctl: return

[Devel] [PATCH RH9] ve/cgroup: hide non-virtualized cgroups in container

2021-10-22 Thread Pavel Tikhomirov
On container(ve) start "virtualized" (is_virtualized_cgroup() == true) root cgroups of container are checked to insure that each container has own non intersecting set of those cgroup directories. We don't check all cgroups because new named empty cgroups can be created on host at any moment and v

[Devel] [PATCH RH9 2/4] xfs: Never show balloon in readdir results

2021-10-22 Thread Kirill Tkhai
Note, that xfs_readdir() may be called from many places. To underline the case, when it's called from normal readdir syscalls (not from xfs service functionality), and to avoid to add a new argument to xfs_readdir(), we introduce a special value: XFS_FAKE_TRANS_IGNORE_BALLOON. Signed-off-by: Kiril

[Devel] [PATCH RH9 1/4] xfs: Teach the fs where the balloon inode is

2021-10-22 Thread Kirill Tkhai
This adds balloon_ino=XXX mount option for xfs. Signed-off-by: Kirill Tkhai --- fs/xfs/xfs_mount.h |2 + fs/xfs/xfs_super.c | 79 fs/xfs/xfs_super.h |2 + 3 files changed, 83 insertions(+) diff --git a/fs/xfs/xfs_mount.h b/fs/xfs/xf

[Devel] [PATCH RH9 0/4] xfs: Add balloon support

2021-10-22 Thread Kirill Tkhai
https://jira.sw.ru/browse/PSBM-133811 --- Kirill Tkhai (4): xfs: Teach the fs where the balloon inode is xfs: Never show balloon in readdir results xfs: Don't show the active balloon to user xfs: Provide a balloon nipple for management fs/xfs/libxfs/xfs_da_btree.h |

[Devel] [PATCH RH9 4/4] xfs: Provide a balloon nipple for management

2021-10-22 Thread Kirill Tkhai
A new ioctl() to open balloon file. Signed-off-by: Kirill Tkhai --- fs/xfs/libxfs/xfs_fs.h |1 + fs/xfs/xfs_ioctl.c | 63 2 files changed, 64 insertions(+) diff --git a/fs/xfs/libxfs/xfs_fs.h b/fs/xfs/libxfs/xfs_fs.h index bde2b4c64dbe.

[Devel] [PATCH RH9 3/4] xfs: Don't show the active balloon to user

2021-10-22 Thread Kirill Tkhai
Prohibit a notpriviliged user to reach balloon. Prohibit everything to unlink it. Signed-off-by: Kirill Tkhai --- fs/xfs/xfs_inode.c |4 fs/xfs/xfs_iops.c |4 2 files changed, 8 insertions(+) diff --git a/fs/xfs/xfs_inode.c b/fs/xfs/xfs_inode.c index 990b72ae3635..32f99876dc1