Libvirt needs some controllers to be mounted before its libvirtd starts, so
let's mount them. And let's mount all controllers, someone might use them.

I'd like to use this patch in Fedora 13, so libvirt guys can test their
stuff based on this.

Signed-off-by: Jan Safranek <[email protected]>
---

 samples/cgconfig.conf |   48 +++++++++++++-----------------------------------
 1 files changed, 13 insertions(+), 35 deletions(-)

diff --git a/samples/cgconfig.conf b/samples/cgconfig.conf
index de77e4b..b14f919 100644
--- a/samples/cgconfig.conf
+++ b/samples/cgconfig.conf
@@ -10,39 +10,17 @@
 #  WITHOUT ANY WARRANTY; without even the implied warranty of
 #  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 #
-#group daemons/www {
-#      perm {
-#              task {
-#                      uid = root;
-#                      gid = webmaster;
-#              }
-#              admin {
-#                      uid = root;
-#                      gid = root;
-#              }
-#      }
-#      cpu {
-#              cpu.shares = 1000;
-#      }
-#}
+# See man cgconfig.conf for further details.
 #
-#group daemons/ftp {
-#      perm {
-#              task {
-#                      uid = root;
-#                      gid = ftpmaster;
-#              }
-#              admin {
-#                      uid = root;
-#                      gid = root;
-#              }
-#      }
-#      cpu {
-#              cpu.shares = 500;
-#      }
-#}
-#
-#mount {
-#      cpu = /mnt/cgroups/cpu;
-#      cpuacct = /mnt/cgroups/cpuacct;
-#}
+# By default, mount all controllers to /cgroup/<controller>
+
+mount {
+       cpuset  = /cgroup/cpuset;
+       cpu     = /cgroup/cpu;
+       cpuacct = /cgroup/cpuacct;
+       memory  = /cgroup/memory;
+       devices = /cgroup/devices;
+       freezer = /cgroup/freezer;
+       net_cls = /cgroup/net_cls;
+}
+


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Libcg-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/libcg-devel

Reply via email to