/*_syscall2(int, pivot_root, char *, newroot, const char *, oldroot)*/
-extern int pivot_root(const char * new_root,const char * put_old);
+extern int pivot_root(const char * new_root, const char * put_old);
static int lxcContainerChildMountSort(const void *a, const void *b)
{
}
*autostart = 0;
- if (STREQ(value,"yes"))
+ if (STREQ(value, "yes"))
*autostart = 1;
ret = 0;
int ret;
char buf[32];
char *endptr;
- virCommandPtr cmd = virCommandNewArgList(VZLIST, "-ovpsid", "-H" , NULL);
+ virCommandPtr cmd = virCommandNewArgList(VZLIST, "-ovpsid", "-H", NULL);
virCommandSetOutputFD(cmd, &outfd);
if (virCommandRunAsync(cmd, NULL) < 0)
/*
* openvz_driver.c: core driver methods for managing OpenVZ VEs
*
+ * Copyright (C) 2013 Red Hat, Inc.
* Copyright (C) 2012 Guido Günther
*
* This library is free software; you can redistribute it and/or
"-o",
param,
domain->name,
- "-H" , NULL);
+ "-H", NULL);
virCommandSetOutputBuffer(cmd, &output);
if (virCommandRun(cmd, NULL) < 0) {
/*
* test.c: A "mock" hypervisor for use by application unit tests
*
- * Copyright (C) 2006-2012 Red Hat, Inc.
+ * Copyright (C) 2006-2013 Red Hat, Inc.
* Copyright (C) 2006 Daniel P. Berrange
*
* This library is free software; you can redistribute it and/or
if (virCapabilitiesAddHostFeature(caps, "pae") < 0)
goto error;
- if (virCapabilitiesAddHostFeature(caps ,"nonpae") < 0)
+ if (virCapabilitiesAddHostFeature(caps, "nonpae") < 0)
goto error;
for (i = 0; i < privconn->numCells; i++) {
if (virCapabilitiesAddGuestFeature(guest, "pae", 1, 1) == NULL)
goto error;
- if (virCapabilitiesAddGuestFeature(guest ,"nonpae", 1, 1) == NULL)
+ if (virCapabilitiesAddGuestFeature(guest, "nonpae", 1, 1) == NULL)
goto error;
}
virCheckFlags(0, NULL);
testDriverLock(privconn);
- if ((def = virDomainDefParseString(xml,privconn->caps, privconn->xmlopt,
+ if ((def = virDomainDefParseString(xml, privconn->caps, privconn->xmlopt,
1 << VIR_DOMAIN_VIRT_TEST,
VIR_DOMAIN_XML_INACTIVE)) == NULL)
goto cleanup;
if (!virDomainObjIsActive(privdom)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s",_("cannot list vcpus for an inactive domain"));
+ "%s", _("cannot list vcpus for an inactive domain"));
goto cleanup;
}
if (!virDomainObjIsActive(privdom)) {
virReportError(VIR_ERR_OPERATION_INVALID,
- "%s",_("cannot pin vcpus on an inactive domain"));
+ "%s", _("cannot pin vcpus on an inactive domain"));
goto cleanup;
}