[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

Re: [Libguestfs] [PATCH v2] daemon: collect list of called external commands



On Thu, Aug 30, Olaf Hering wrote:


> +++ b/daemon/lvm-filter.c
> @@ -31,6 +31,11 @@
>  #include "daemon.h"
>  #include "actions.h"
>  
> +GUESTFSD_EXT_CMD(str_lvm, lvm);
> +GUESTFSD_EXT_CMD(str_vgchange, vgchange);

> @@ -189,7 +194,7 @@ static int
>  vgchange (const char *vgchange_flag)
>  {
>    char *err;
> -  int r = command (NULL, &err, "lvm", "vgchange", vgchange_flag, NULL);
> +  int r = command (NULL, &err, str_lvm, str_vgchange, vgchange_flag, NULL);

I noticed this str_vgchange is not needed.

Olaf


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]