Re: [lxc-devel] [PATCH 1/2] lxc-netstat: improve finding fs mountpoint of hierarchy

2013-01-02 Thread Stéphane Graber
On 12/26/2012 04:07 AM, Natanael Copa wrote: > We cannot assume that the mount source name always starts with 'cgroup' > so we check the filesystem type instead. > > Use 'awk' instead of 'grep -E' and as it is a better tool for this job. > > This fixes the tool on systems using openrc. > > Sign

[lxc-devel] [PATCH 1/2] lxc-netstat: improve finding fs mountpoint of hierarchy

2012-12-26 Thread Natanael Copa
We cannot assume that the mount source name always starts with 'cgroup' so we check the filesystem type instead. Use 'awk' instead of 'grep -E' and as it is a better tool for this job. This fixes the tool on systems using openrc. Signed-off-by: Natanael Copa --- src/lxc/lxc-netstat.in | 3 ++-