|
Pablo Greco |
40546a |
From 0a488720d9702ccedf9e37f639772f67e0180d33 Mon Sep 17 00:00:00 2001
|
|
Pablo Greco |
40546a |
Message-Id: <0a488720d9702ccedf9e37f639772f67e0180d33@dist-git>
|
|
Pablo Greco |
40546a |
From: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Date: Mon, 1 Jul 2019 17:05:54 +0200
|
|
Pablo Greco |
40546a |
Subject: [PATCH] vircgroup: Move function used in tests into vircgrouppriv.h
|
|
Pablo Greco |
40546a |
MIME-Version: 1.0
|
|
Pablo Greco |
40546a |
Content-Type: text/plain; charset=UTF-8
|
|
Pablo Greco |
40546a |
Content-Transfer-Encoding: 8bit
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
(cherry picked from commit 8ea2d5a6cbe9d14f30ffb8dbe0922945f0f490cb)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Resolves: https://bugzilla.redhat.com/show_bug.cgi?id=1689297
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
Signed-off-by: Pavel Hrdina <phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Message-Id: <2f8afe33e9c7db8173b360eeaac3ae2e2385eda5.1561993099.git.phrdina@redhat.com>
|
|
Pablo Greco |
40546a |
Reviewed-by: Ján Tomko <jtomko@redhat.com>
|
|
Pablo Greco |
40546a |
---
|
|
Pablo Greco |
40546a |
src/util/vircgroup.h | 13 -------------
|
|
Pablo Greco |
40546a |
src/util/vircgrouppriv.h | 13 +++++++++++++
|
|
Pablo Greco |
40546a |
2 files changed, 13 insertions(+), 13 deletions(-)
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
diff --git a/src/util/vircgroup.h b/src/util/vircgroup.h
|
|
Pablo Greco |
40546a |
index 138bb3c076..48be077aba 100644
|
|
Pablo Greco |
40546a |
--- a/src/util/vircgroup.h
|
|
Pablo Greco |
40546a |
+++ b/src/util/vircgroup.h
|
|
Pablo Greco |
40546a |
@@ -64,22 +64,9 @@ typedef enum {
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
bool virCgroupAvailable(void);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
-int virCgroupNewPartition(const char *path,
|
|
Pablo Greco |
40546a |
- bool create,
|
|
Pablo Greco |
40546a |
- int controllers,
|
|
Pablo Greco |
40546a |
- virCgroupPtr *group)
|
|
Pablo Greco |
40546a |
- ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(4);
|
|
Pablo Greco |
40546a |
-
|
|
Pablo Greco |
40546a |
int virCgroupNewSelf(virCgroupPtr *group)
|
|
Pablo Greco |
40546a |
ATTRIBUTE_NONNULL(1);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
-int virCgroupNewDomainPartition(virCgroupPtr partition,
|
|
Pablo Greco |
40546a |
- const char *driver,
|
|
Pablo Greco |
40546a |
- const char *name,
|
|
Pablo Greco |
40546a |
- bool create,
|
|
Pablo Greco |
40546a |
- virCgroupPtr *group)
|
|
Pablo Greco |
40546a |
- ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5);
|
|
Pablo Greco |
40546a |
-
|
|
Pablo Greco |
40546a |
int virCgroupNewThread(virCgroupPtr domain,
|
|
Pablo Greco |
40546a |
virCgroupThreadName nameval,
|
|
Pablo Greco |
40546a |
int id,
|
|
Pablo Greco |
40546a |
diff --git a/src/util/vircgrouppriv.h b/src/util/vircgrouppriv.h
|
|
Pablo Greco |
40546a |
index 1b47d3b858..a0034f3889 100644
|
|
Pablo Greco |
40546a |
--- a/src/util/vircgrouppriv.h
|
|
Pablo Greco |
40546a |
+++ b/src/util/vircgrouppriv.h
|
|
Pablo Greco |
40546a |
@@ -54,4 +54,17 @@ int virCgroupDetectMountsFromFile(virCgroupPtr group,
|
|
Pablo Greco |
40546a |
const char *path,
|
|
Pablo Greco |
40546a |
bool checkLinks);
|
|
Pablo Greco |
40546a |
|
|
Pablo Greco |
40546a |
+int virCgroupNewPartition(const char *path,
|
|
Pablo Greco |
40546a |
+ bool create,
|
|
Pablo Greco |
40546a |
+ int controllers,
|
|
Pablo Greco |
40546a |
+ virCgroupPtr *group)
|
|
Pablo Greco |
40546a |
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(4);
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
+int virCgroupNewDomainPartition(virCgroupPtr partition,
|
|
Pablo Greco |
40546a |
+ const char *driver,
|
|
Pablo Greco |
40546a |
+ const char *name,
|
|
Pablo Greco |
40546a |
+ bool create,
|
|
Pablo Greco |
40546a |
+ virCgroupPtr *group)
|
|
Pablo Greco |
40546a |
+ ATTRIBUTE_NONNULL(1) ATTRIBUTE_NONNULL(2) ATTRIBUTE_NONNULL(5);
|
|
Pablo Greco |
40546a |
+
|
|
Pablo Greco |
40546a |
#endif /* __VIR_CGROUP_PRIV_H__ */
|
|
Pablo Greco |
40546a |
--
|
|
Pablo Greco |
40546a |
2.22.0
|
|
Pablo Greco |
40546a |
|