]> git.ipfire.org Git - thirdparty/libcgroup.git/commit
cgsnapshot: fix the print message when use cgsnapshot with -f
authorWeng Meiling <wengmeiling.weng@huawei.com>
Tue, 25 Jun 2013 07:53:22 +0000 (09:53 +0200)
committerPeter Schiffer <pschiffe@redhat.com>
Tue, 25 Jun 2013 07:53:22 +0000 (09:53 +0200)
commit4a33777ae0beca810283f670d10d59d69bf82b35
treeec3776dfdd7e0c9575427de5810b98e80111891f
parent6b11b2663eac2ea20139077776334b0935cefc56
cgsnapshot: fix the print message when use cgsnapshot with -f

When use cgsnapshot with -f to save current configuration of cgroups,
the mount section is missing, this patch fix it.

the example as following:
# cgsnapshot -s -f config
        cpu = /cgroup/cpu;
# cat config
# Configuration file generated by cgsnapshot
mount {
}

group test {
        cpu {
                cpu.rt_period_us="1000000";
                cpu.rt_runtime_us="0";
                cpu.cfs_period_us="100000";
                cpu.cfs_quota_us="-1";
                cpu.shares="1024";
        }
}

Signed-off-by: Weng Meiling <wengmeiling.weng@huawei.com>
Acked-by: Ivana Hutarova Varekova <varekova@redhat.com>
src/tools/cgsnapshot.c