From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758604AbcEFRmk (ORCPT ); Fri, 6 May 2016 13:42:40 -0400 Received: from mail-yw0-f180.google.com ([209.85.161.180]:36834 "EHLO mail-yw0-f180.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755915AbcEFRmi (ORCPT ); Fri, 6 May 2016 13:42:38 -0400 Date: Fri, 6 May 2016 13:42:32 -0400 From: Tejun Heo To: "Serge E. Hallyn" Cc: "Michael Kerrisk (man-pages)" , "Serge E. Hallyn" , linux-kernel@vger.kernel.org, linux-api@vger.kernel.org, containers@lists.linux-foundation.org, hannes@cmpxchg.org, ebiederm@xmission.com, gregkh@linuxfoundation.org, cgroups@vger.kernel.org, akpm@linux-foundation.org Subject: Re: [PATCH] mountinfo: implement show_path for kernfs and cgroup Message-ID: <20160506174232.GC7110@mtj.duckdns.org> References: <20160505152058.GC13186@mail.hallyn.com> <6db5b7e5-3f15-39bd-cc9e-e3c296378e54@gmail.com> <20160506173356.GA1228@mail.hallyn.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160506173356.GA1228@mail.hallyn.com> User-Agent: Mutt/1.5.24 (2015-08-30) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hello, On Fri, May 06, 2016 at 12:33:56PM -0500, Serge E. Hallyn wrote: > Right. So in particular, docker wants to do something like: > > bindpath=`grep freezer /proc/self/mountinfo | tail -n 1 | awk '{ print $4 }'` > mountpoint=`grep freezer /proc/self/mountinfo | tail -n 1 | awk '{ print $5 }'` > mycg=`awk -F: '/freezer/ { print $3 }' /proc/self/cgroup` > cat ${mountpoint}/${bindpath}/${mycg}/cgroup.procs > > and see its own task. Can you please make the example more concrete? e.g. Use actual paths and show what they show now vs. what they should. Thanks. -- tejun