|
From: Ivana H. V. <var...@us...> - 2012-05-10 06:54:33
|
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "This is the main upstream repository of the libcgroup project. All releases".
The branch, master has been updated
via c741b742bd0707f5ab58e6a29196eab42080a233 (commit)
from b5563953ecadedb3f6796d2fb1d3257899439f7e (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.
- Log -----------------------------------------------------------------
commit c741b742bd0707f5ab58e6a29196eab42080a233
Author: Ivana Hutarova Varekova <var...@re...>
Date: Thu May 10 07:07:41 2012 +0200
From: Ivana Hutarova Varekova <var...@re...>
lscgroup: fix path name trimming
lscgroup tool in display_controller_data procedure trimmed relative path
name too strictly, thus if the path have no leading "/" sign then the first
character was trimmed too.
More precisely the relative path is taken from the full path - path to the
controller root and relative path given on command line (with all
characters "/") + character "/" at the end of path. The length of suffix
which describe relative path is count from trimmed relative path given on
command line (without characters "/" at the beginning and at the end).
There have to be used the same relative path in both cases and -1 to the
length.
CHANGELOG v1:
* more detailed description
* fix the problem with "/" sign at the end of path too
EXAMPLE
without the patch:
$ lscgroup freezer:libvirt
freezer:/ibvirt/
freezer:/ibvirt/lxc
freezer:/ibvirt/qemu
with the patch:
$ lscgroup freezer:libvirt
freezer:/libvirt/
freezer:/libvirt/lxc
freezer:/libvirt/qemu
this patch fixes the problem.
Signed-off-by: Ivana Hutarova Varekova <var...@re...>
Acked-By: Jan Safranek<jsa...@re...>
-----------------------------------------------------------------------
Summary of changes:
src/tools/lscgroup.c | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
hooks/post-receive
--
This is the main upstream repository of the libcgroup project. All releases
|