Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756319AbYBKOft (ORCPT ); Mon, 11 Feb 2008 09:35:49 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755627AbYBKOfR (ORCPT ); Mon, 11 Feb 2008 09:35:17 -0500 Received: from mx1.redhat.com ([66.187.233.31]:58251 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754710AbYBKOfI (ORCPT ); Mon, 11 Feb 2008 09:35:08 -0500 Date: Mon, 11 Feb 2008 22:31:14 +0800 From: Eugene Teo To: KOSAKI Motohiro Cc: linux-kernel@vger.kernel.org, Miklos Szeredi Subject: Re: [PATCH] proc: extend /proc//fdinfo/ Message-ID: <20080211143114.GB3695@kernel.sg> Reply-To: Eugene Teo References: <20080209120157.GA3035@kernel.sg> <2f11576a0802110220g459d7390je05bfec161e6768e@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <2f11576a0802110220g459d7390je05bfec161e6768e@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-11-01) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1310 Lines: 53 Hi Motohiro-san, > In general, I think this patch isn't wrong idea. > but it shuld be brush up more, may be. Thanks. > > kerndev: ~/code/kernel# cat /proc/`pgrep pickup`/fdinfo/6 > > mode: 0622 > > I think this is inode attribute, but not fd attribute. Yes, it is an inode attribute. > > dev: 253,0 > > ino: 21463057 > > may be useful, agreed with you :) Thanks. > > uid: 89 > > gid: 89 > > rdev: 0,0 > > pos: 0 > > flags: 04002 FD_CLOEXEC # if close-on-exec flag is set > > agreed with Miklos's opinion. > > > path: /var/spool/postfix/public/pickup > > may be, we shold think namespace.. Besides readlink, this info can be gathered by running: ls -laF /proc//fd/ So, I agree with Miklo's opinion that we can omit this in the output. > > You can also use this to find out more information about locked open files: > > is your requirement only fd -> ino pick up? Not only this, but it is useful to know quickly if the open file descriptor has a close-on-exec flag set. Thanks, Eugene -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/