currently one may run 'vstorage-mount -s' with -L option, but
it will affect only current mount w/o reflection to fstab opts.
In fact mount.fuse.vstorage already has parser for logrotate option, so
this patch makes this feature fully supported.
Signed-off-by: Dmitry Monakhov
Precursor patch. VE will be used later to get proper pid and user namespaces
for correct event generation.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 36 +++-
1 file changed, 19 insertions(+), 17
Intead of hardcoded "init" namespaces.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 69 ++-
1 file changed, 42 insertions(+), 27 deletions(-)
diff --git a/drivers/connector/cn_proc.c
This is needed to attach listener to the right device. I.e. attach to the
right source of events (in terms of CT).
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c |2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 28 +++-
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index 2d5ff7c..312f30f 100644
---
Needed to expose "/proc/net/connector" in CT and show right content.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c |4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/connector/connector.c
Instead of static variables.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 50 ---
1 file changed, 32 insertions(+), 18 deletions(-)
diff --git a/drivers/connector/cn_proc.c
These routines will be called from main connecter per-ve init and fini
routines.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 17 +
include/linux/connector.h |3 +++
2 files changed, 20 insertions(+)
diff --git
This is needed to preserve current behaviour, when process in initial pid and
user namespaces (i.e. in VE#0) can receive events from all the processes in
the system.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 29
This is precursor patch. Later VE pid ns will be used.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 40
1 file changed, 20 insertions(+), 20 deletions(-)
diff --git a/drivers/connector/cn_proc.c
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 28 +++-
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index 312f30f..4ee1640 100644
---
Once containerized, device won't be one and for all.
Thus make a helper template and use it instead of direct device object access.
Use ve0 for now.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c | 20 +---
1 file changed, 13
This allows to support per-container connector creation and destruction.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 19 ---
drivers/connector/connector.c | 33 -
2 files changed, 28
This is precursor patch.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c | 48 -
include/linux/connector.h |7 ++
2 files changed, 40 insertions(+), 15 deletions(-)
diff --git
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 29 -
1 file changed, 8 insertions(+), 21 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index 06fd6b3..0647fcf 100644
---
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 30 +++---
1 file changed, 7 insertions(+), 23 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index 808b22a..ffda79b 100644
---
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 28 +++-
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index 0647fcf..2ad2587 100644
---
This is needed to containerize connector and its proc part.
Signed-off-by: Stanislav Kinsburskiy
---
include/linux/connector.h |9 +
include/linux/ve.h|4
2 files changed, 13 insertions(+)
diff --git a/include/linux/connector.h
A lot of code is duplicated in proc connector events handling.
This patch introduces generic even handler, which will be used by different
events.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 50 +++
A small cleanup: this callback is never used.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c |6 +-
include/linux/connector.h |1 -
2 files changed, 1 insertion(+), 6 deletions(-)
diff --git a/drivers/connector/connector.c
This helpers will be used later to initialize per-container connector.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c | 31 +--
1 file changed, 25 insertions(+), 6 deletions(-)
diff --git
Instead of global static device.
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c |8
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index f5484b2..bc2308a
This feature is requested by customer and needed by cgred service.
https://jira.sw.ru/browse/PSBM-60227
What's ne in v2:
1) Containerization is done on per-VE basis
2) Event in container is also sent to VE#0
---
Stanislav Kinsburskiy (27):
connector: remove redundant input callback from
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/connector.c |8 +++-
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/drivers/connector/connector.c b/drivers/connector/connector.c
index bba667d..110637b 100644
---
Signed-off-by: Stanislav Kinsburskiy
---
drivers/connector/cn_proc.c | 28 +++-
1 file changed, 7 insertions(+), 21 deletions(-)
diff --git a/drivers/connector/cn_proc.c b/drivers/connector/cn_proc.c
index ffda79b..06fd6b3 100644
---
25 matches
Mail list logo