[PATCH v2 01/28] Rename cgroup.{h,c} to vircgroup.{h,c}

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

 



From: "Daniel P. Berrange" <berrange@xxxxxxxxxx>

To bring in line with new naming practice, rename the=
src/util/cgroup.{h,c} files to vircgroup.{h,c}

Signed-off-by: Daniel P. Berrange <berrange@xxxxxxxxxx>
---
 po/POTFILES.in                     | 2 +-
 src/Makefile.am                    | 2 +-
 src/conf/domain_audit.h            | 2 +-
 src/lxc/lxc_cgroup.c               | 2 +-
 src/lxc/lxc_conf.h                 | 2 +-
 src/qemu/qemu_cgroup.c             | 2 +-
 src/qemu/qemu_conf.h               | 2 +-
 src/util/{cgroup.c => vircgroup.c} | 4 ++--
 src/util/{cgroup.h => vircgroup.h} | 8 ++++----
 9 files changed, 13 insertions(+), 13 deletions(-)
 rename src/util/{cgroup.c => vircgroup.c} (99%)
 rename src/util/{cgroup.h => vircgroup.h} (97%)

diff --git a/po/POTFILES.in b/po/POTFILES.in
index 6b08cf0..c5f68e4 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -138,7 +138,6 @@ src/storage/storage_driver.c
 src/test/test_driver.c
 src/uml/uml_conf.c
 src/uml/uml_driver.c
-src/util/cgroup.c
 src/util/command.c
 src/util/conf.c
 src/util/dnsmasq.c
@@ -158,6 +157,7 @@ src/util/util.c
 src/util/viraudit.c
 src/util/virauth.c
 src/util/virauthconfig.c
+src/util/vircgroup.c
 src/util/virdbus.c
 src/util/virfile.c
 src/util/virhash.c
diff --git a/src/Makefile.am b/src/Makefile.am
index 52805e8..e87b0c8 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -57,7 +57,6 @@ UTIL_SOURCES =							\
 		util/buf.c util/buf.h				\
 		util/command.c util/command.h			\
 		util/conf.c util/conf.h				\
-		util/cgroup.c util/cgroup.h			\
 		util/event.c util/event.h			\
 		util/event_poll.c util/event_poll.h		\
 		util/hooks.c util/hooks.h			\
@@ -93,6 +92,7 @@ UTIL_SOURCES =							\
 		util/virtypedparam.c util/virtypedparam.h	\
 		util/xml.c util/xml.h				\
 		util/virterror.c util/virterror_internal.h	\
+		util/vircgroup.c util/vircgroup.h		\
 		util/virdbus.c util/virdbus.h			\
 		util/virhash.c util/virhash.h			\
 		util/virhashcode.c util/virhashcode.h           \
diff --git a/src/conf/domain_audit.h b/src/conf/domain_audit.h
index 63a8f75..381fe37 100644
--- a/src/conf/domain_audit.h
+++ b/src/conf/domain_audit.h
@@ -25,7 +25,7 @@
 # define __VIR_DOMAIN_AUDIT_H__
 
 # include "domain_conf.h"
-# include "cgroup.h"
+# include "vircgroup.h"
 
 void virDomainAuditStart(virDomainObjPtr vm,
                          const char *reason,
diff --git a/src/lxc/lxc_cgroup.c b/src/lxc/lxc_cgroup.c
index 4fe23c1..5f092de 100644
--- a/src/lxc/lxc_cgroup.c
+++ b/src/lxc/lxc_cgroup.c
@@ -27,7 +27,7 @@
 #include "virterror_internal.h"
 #include "logging.h"
 #include "memory.h"
-#include "cgroup.h"
+#include "vircgroup.h"
 
 #define VIR_FROM_THIS VIR_FROM_LXC
 
diff --git a/src/lxc/lxc_conf.h b/src/lxc/lxc_conf.h
index d66f284..a9c337e 100644
--- a/src/lxc/lxc_conf.h
+++ b/src/lxc/lxc_conf.h
@@ -32,7 +32,7 @@
 # include "domain_event.h"
 # include "capabilities.h"
 # include "threads.h"
-# include "cgroup.h"
+# include "vircgroup.h"
 # include "security/security_manager.h"
 # include "configmake.h"
 # include "hostusb.h"
diff --git a/src/qemu/qemu_cgroup.c b/src/qemu/qemu_cgroup.c
index 084d89d..445d085 100644
--- a/src/qemu/qemu_cgroup.c
+++ b/src/qemu/qemu_cgroup.c
@@ -26,7 +26,7 @@
 #include "qemu_cgroup.h"
 #include "qemu_domain.h"
 #include "qemu_process.h"
-#include "cgroup.h"
+#include "vircgroup.h"
 #include "logging.h"
 #include "memory.h"
 #include "virterror_internal.h"
diff --git a/src/qemu/qemu_conf.h b/src/qemu/qemu_conf.h
index 1a39946..cfa6fff 100644
--- a/src/qemu/qemu_conf.h
+++ b/src/qemu/qemu_conf.h
@@ -34,7 +34,7 @@
 # include "domain_event.h"
 # include "threads.h"
 # include "security/security_manager.h"
-# include "cgroup.h"
+# include "vircgroup.h"
 # include "pci.h"
 # include "hostusb.h"
 # include "cpu_conf.h"
diff --git a/src/util/cgroup.c b/src/util/vircgroup.c
similarity index 99%
rename from src/util/cgroup.c
rename to src/util/vircgroup.c
index 8f3b8b7..e9fc67f 100644
--- a/src/util/cgroup.c
+++ b/src/util/vircgroup.c
@@ -1,5 +1,5 @@
 /*
- * cgroup.c: Tools for managing cgroups
+ * vircgroup.c: methods for managing control cgroups
  *
  * Copyright (C) 2010-2012 Red Hat, Inc.
  * Copyright IBM Corp. 2008
@@ -40,7 +40,7 @@
 #include "internal.h"
 #include "util.h"
 #include "memory.h"
-#include "cgroup.h"
+#include "vircgroup.h"
 #include "logging.h"
 #include "virfile.h"
 #include "virhash.h"
diff --git a/src/util/cgroup.h b/src/util/vircgroup.h
similarity index 97%
rename from src/util/cgroup.h
rename to src/util/vircgroup.h
index fc9e409..8b6d3b2 100644
--- a/src/util/cgroup.h
+++ b/src/util/vircgroup.h
@@ -1,5 +1,5 @@
 /*
- * cgroup.h: Interface to tools for managing cgroups
+ * vircgroup.h: methods for managing control cgroups
  *
  * Copyright (C) 2011-2012 Red Hat, Inc.
  * Copyright IBM Corp. 2008
@@ -22,8 +22,8 @@
  *  Dan Smith <danms@xxxxxxxxxx>
  */
 
-#ifndef CGROUP_H
-# define CGROUP_H
+#ifndef __VIR_CGROUP_H__
+# define __VIR_CGROUP_H__
 
 struct virCgroup;
 typedef struct virCgroup *virCgroupPtr;
@@ -164,4 +164,4 @@ int virCgroupKill(virCgroupPtr group, int signum);
 int virCgroupKillRecursive(virCgroupPtr group, int signum);
 int virCgroupKillPainfully(virCgroupPtr group);
 
-#endif /* CGROUP_H */
+#endif /* __VIR_CGROUP_H__ */
-- 
1.7.11.7

--
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]