From mboxrd@z Thu Jan 1 00:00:00 1970 From: Al Viro Subject: Re: [patch 2/9] procfs: Convert /proc/pid/fdinfo/ handling routines to seq-file v2 Date: Sun, 26 Aug 2012 03:46:53 +0100 Message-ID: <20120826024653.GY23464@ZenIV.linux.org.uk> References: <20120823104323.040550004@openvz.org> <20120823104725.686586462@openvz.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org, Alexey Dobriyan , Andrew Morton , Pavel Emelyanov , James Bottomley , Matthew Helsley , aneesh.kumar@linux.vnet.ibm.com, bfields@fieldses.org To: Cyrill Gorcunov Return-path: Content-Disposition: inline In-Reply-To: <20120823104725.686586462@openvz.org> Sender: linux-kernel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org On Thu, Aug 23, 2012 at 02:43:25PM +0400, Cyrill Gorcunov wrote: > This patch converts /proc/pid/fdinfo/ handling routines to seq-file which > is needed to extend seq operations and plug in auxiliary fdinfo provides > from subsystems like eventfd/eventpoll/fsnotify. > > Note the proc_fd_link no longer call for proc_fd_info, simply because > proc_fd_info is converted to seq_fdinfo_open (which is seq-file open() > prototype). Actually, now that I've looked at it a bit more... You've just introduced an ABI change here. Look: echo foo > /tmp/a exec 8show(), since you are using a single-shot iterator anyway...