[PATCH v2 1/3] virhook: refactoring for support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
Signed-off-by: Dmitry Nesterenko --- src/util/virhook.c | 74 +- 1 file changed, 53 insertions(+), 21 deletions(-) diff --git a/src/util/virhook.c b/src/util/virhook.c index e499841f66..64ee9a2307 100644 --- a/src/util/virhook.c +++ b/src/util

[PATCH v2 2/3] virhook: support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
Signed-off-by: Dmitry Nesterenko --- src/util/virhook.c | 106 + 1 file changed, 97 insertions(+), 9 deletions(-) diff --git a/src/util/virhook.c b/src/util/virhook.c index 64ee9a2307..cd26c8c9bd 100644 --- a/src/util/virhook.c +++ b/src/util

[PATCH v2 0/3] Support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
from the directories /etc/libvirt/hooks/.d/ in alphabetical order. If we find script in old place we will execute it as first for backward compatibility. Dmitry Nesterenko (3): virhook: refactoring for support hooks placed in several files virhook: support hooks placed in several files virhook

[PATCH v2 3/3] virhook: changes in docs about support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
Signed-off-by: Dmitry Nesterenko --- NEWS.rst | 6 ++ docs/hooks.html.in | 27 +++ 2 files changed, 33 insertions(+) diff --git a/NEWS.rst b/NEWS.rst index 42d159b233..18917d9e95 100644 --- a/NEWS.rst +++ b/NEWS.rst @@ -28,6 +28,12 @@ v6.5.0 (unreleased

Re: [PATCH 2/2] virhook: support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
s run all scripts. Dmitry From: Michal Privoznik Sent: Tuesday, June 23, 2020 1:03 PM To: Dmitry Nesterenko; libvir-list@redhat.com Subject: Re: [PATCH 2/2] virhook: support hooks placed in several files On 6/23/20 10:24 AM, Dmitry Nesterenko wrote: > >> virFileI

Re: [PATCH 2/2] virhook: support hooks placed in several files

2020-06-23 Thread Dmitry Nesterenko
tringIsEmpty(*output)) ? *output : (char *)input; From: Michal Privoznik Sent: Monday, June 22, 2020 4:06 PM To: Dmitry Nesterenko; libvir-list@redhat.com Subject: Re: [PATCH 2/2] virhook: support hooks placed in several files On 6/21/20 11:16 PM, Dmitry Nesterenko wrote: > S

[PATCH 1/2] virthook: refactoring for support hooks placed in several files

2020-06-21 Thread Dmitry Nesterenko
Signed-off-by: Dmitry Nesterenko --- src/util/virhook.c | 74 +- 1 file changed, 53 insertions(+), 21 deletions(-) diff --git a/src/util/virhook.c b/src/util/virhook.c index e499841f66..64ee9a2307 100644 --- a/src/util/virhook.c +++ b/src/util

[PATCH 2/2] virhook: support hooks placed in several files

2020-06-21 Thread Dmitry Nesterenko
Signed-off-by: Dmitry Nesterenko --- src/util/virhook.c | 110 + 1 file changed, 101 insertions(+), 9 deletions(-) diff --git a/src/util/virhook.c b/src/util/virhook.c index 64ee9a2307..763381d962 100644 --- a/src/util/virhook.c +++ b/src/util

[PATCH 0/2] Support hooks placed in several files

2020-06-21 Thread Dmitry Nesterenko
from directory /etc/libvirt/hooks/.d in alphabetical order. If we find script in old place we will execute it as first for backward compatibility. Dmitry Nesterenko (2): virthook: refactoring for support hooks placed in several files virhook: support hooks placed in several files src/util

[RFC] Expanding hooks API for running several scripts by one call virHookCall

2020-06-16 Thread Dmitry Nesterenko
Hi, all. I have the proposal about subject. Libvirt hook calls only one script (/etc/libvirt/hooks/) now. This is not convenient if scripts for hook are provided by many vendors. Script one vendor can replace previously installed script other vendor. Let's use usual linux scheme - running all

Re: [RFC] Adding docker driver to libvirt

2020-04-16 Thread Dmitry Nesterenko
. Berrangé Sent: Thursday, April 16, 2020 4:49 PM To: Dmitry Nesterenko Cc: Nikolay Shirokovskiy ; Martin Kletzander ; libvir-list@redhat.com ; Dmitry Mishin Subject: Re: [RFC] Adding docker driver to libvirt On Thu, Apr 16, 2020 at 01:47:39PM +, Dmitry Nesterenko wrote: > > > The contai

Re: [RFC] Adding docker driver to libvirt

2020-04-16 Thread Dmitry Nesterenko
ive docker API. So my first implementation of docker driver will iclude all calls those have realized for hyperv driver now. Dmitry From: Nikolay Shirokovskiy Sent: Thursday, April 16, 2020 3:18 PM To: Daniel P. Berrangé Cc: Martin Kletzander ; libvir-list