提交 525c9d5a 编写于 作者: D Daniel P. Berrange

Make virCgroupIsValidMachine static

The virCgroupIsValidMachine does not need to be called from
outside the cgroups file now, so make it static.
Signed-off-by: NDaniel P. Berrange <berrange@redhat.com>
上级 a45b99ea
......@@ -1186,7 +1186,6 @@ virCgroupGetMemSwapHardLimit;
virCgroupGetMemSwapUsage;
virCgroupHasController;
virCgroupIsolateMount;
virCgroupIsValidMachineGroup;
virCgroupKill;
virCgroupKillPainfully;
virCgroupKillRecursive;
......
......@@ -95,9 +95,10 @@ bool virCgroupAvailable(void)
return ret;
}
bool virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *name,
const char *drivername)
static bool
virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *name,
const char *drivername)
{
size_t i;
bool valid = false;
......
......@@ -48,11 +48,6 @@ VIR_ENUM_DECL(virCgroupController);
bool virCgroupAvailable(void);
bool virCgroupIsValidMachineGroup(virCgroupPtr group,
const char *machinename,
const char *drivername);
int virCgroupNewPartition(const char *path,
bool create,
int controllers,
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册