From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tejun Heo Subject: Re: [RFC][PATCH 0/7 + tools] Checkpoint/restore mostly in the userspace Date: Sat, 23 Jul 2011 06:58:42 +0200 Message-ID: <20110723045842.GD21089@mtj.dyndns.org> References: <4E204466.8010204@parallels.com> <20110723002558.GE16940@count0.beaverton.ibm.com> <20110723032945.GD21563@count0.beaverton.ibm.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Content-Disposition: inline In-Reply-To: <20110723032945.GD21563-52DBMbEzqgQ/wnmkkaCWp/UQ3DHhIser@public.gmane.org> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org Errors-To: containers-bounces-cunTk1MwBs9QetFLy7KEm3xJsTq8ys+cHZ5vskTnxNA@public.gmane.org To: Matt Helsley Cc: Pavel Emelyanov , Glauber Costa , Cyrill Gorcunov , Nathan Lynch , Linux Containers , Serge Hallyn , Daniel Lezcano List-Id: containers.vger.kernel.org On Fri, Jul 22, 2011 at 08:29:45PM -0700, Matt Helsley wrote: > On Fri, Jul 22, 2011 at 05:25:58PM -0700, Matt Helsley wrote: > You'd have to output the fd number for each epoll item plus the path to > the file. The fd,file pair in the item is not strictly tied to > the contents of the processes' fd table yet the item fd has to be output > since it's the number userspace will supply to epoll_ctl(EPOLL_CTL_DEL...). I haven't really looked at it but if @fd is key, @fd should be enough. You can determine what @fd is and it attributes from /proc/PID/fd/ and /proc/PID/fdinfo/. No reason to list them again. -- tejun