Re: [PATCH 02/12] domain: separate out function for post parse timer validation

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

 



On Thu, Jan 07, 2016 at 22:49:56 -0500, Cole Robinson wrote:
> This should be a no-op
> ---
>  src/conf/domain_conf.c | 53 +++++++++++++++++++++++++++++---------------------
>  1 file changed, 31 insertions(+), 22 deletions(-)
> 
> diff --git a/src/conf/domain_conf.c b/src/conf/domain_conf.c
> index ab22322..2570f94 100644
> --- a/src/conf/domain_conf.c
> +++ b/src/conf/domain_conf.c

[...]

> @@ -3845,6 +3824,36 @@ virDomainDefPostParseInternal(virDomainDefPtr def,
>          }
>      }
>  
> +    return 0;
> +}

Two newlines please

> +
> +static int
> +virDomainDefPostParseInternal(virDomainDefPtr def,
> +                              virCapsPtr caps ATTRIBUTE_UNUSED,
> +                              unsigned int parseFlags)
> +{
> +    /* verify init path for container based domains */
> +    if (def->os.type == VIR_DOMAIN_OSTYPE_EXE && !def->os.init) {
> +        virReportError(VIR_ERR_XML_ERROR, "%s",
> +                       _("init binary must be specified"));
> +        return -1;

ACK

Attachment: signature.asc
Description: Digital signature

--
libvir-list mailing list
libvir-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/libvir-list

[Index of Archives]     [Virt Tools]     [Libvirt Users]     [Lib OS Info]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [KDE Users]     [Fedora Tools]