<?xml version="1.0" encoding="utf-8"?>
<feed xml:lang="en" xmlns="http://www.w3.org/2005/Atom"><title>Recent changes to 49: cgsnapshot saves tabs but cgconfig doesn't accept them.</title><link href="https://sourceforge.net/p/libcg/bugs/49/" rel="alternate"/><link href="https://sourceforge.net/p/libcg/bugs/49/feed.atom" rel="self"/><id>https://sourceforge.net/p/libcg/bugs/49/</id><updated>2012-04-26T20:24:41Z</updated><subtitle>Recent changes to 49: cgsnapshot saves tabs but cgconfig doesn't accept them.</subtitle><entry><title>cgsnapshot saves tabs but cgconfig doesn't accept them.</title><link href="https://sourceforge.net/p/libcg/bugs/49/" rel="alternate"/><published>2012-04-26T20:24:41Z</published><updated>2012-04-26T20:24:41Z</updated><author><name>Edward Smith</name><uri>https://sourceforge.net/u/ers81239/</uri></author><id>https://sourceforge.neta5fead3cf6ee72d12c637fba4ab7a2c0d58b00b4</id><summary type="html">&lt;div class="markdown_content"&gt;&lt;p&gt;Description of problem: Using cgsnapshot to save a configuration that includes blkio.throttle.write_bps_device will result in a line in the cgconfig.conf like: &lt;/p&gt;
&lt;p&gt;blkio.throttle.write_bps_device="8:0    10485769";&lt;/p&gt;
&lt;p&gt;Between the 8:0 and the 10485769 is a tab.  cgconfig will complain that it can't parse this file.  Replacing that tab with a space corrects the issue.&lt;/p&gt;
&lt;p&gt;Version-Release number of selected component (if applicable):&lt;br /&gt;
x86_64 0.37 3.el6 (This is actually CentOS version)&lt;/p&gt;
&lt;p&gt;How reproducible:&lt;/p&gt;
&lt;p&gt;Steps to Reproduce:&lt;br /&gt;
1. Start with a cgconfig that uses blkio&lt;br /&gt;
2. echo "8:0 10485769" &amp;gt; blkio.throttle.write_bps_device &lt;br /&gt;
3. cgsnapshot -s  &amp;gt; /etc/cgconfig.conf &lt;br /&gt;
4. service cgconfig restart&lt;/p&gt;
&lt;p&gt;Actual results:&lt;br /&gt;
[root@air /]# service cgconfig restart                                                                                                                                                                             &lt;br /&gt;
Stopping cgconfig service:                                 [  OK  ]&lt;br /&gt;
Starting cgconfig service: Loading configuration file /etc/cgconfig.conf failed&lt;br /&gt;
Value setting does not succeed&lt;br /&gt;
Failed to parse /etc/cgconfig.conf                         [FAILED]&lt;/p&gt;
&lt;p&gt;Expected results:&lt;br /&gt;
This should result in a successful restart.&lt;/p&gt;
&lt;p&gt;Additional info:&lt;/p&gt;&lt;/div&gt;</summary></entry></feed>