From mboxrd@z Thu Jan 1 00:00:00 1970 From: UZAIR LAKHANI Subject: Getting dentry from inode Date: Mon, 17 Apr 2006 10:08:43 -0700 (PDT) Message-ID: <20060417170843.14107.qmail@web37912.mail.mud.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7BIT Return-path: Received: from web37912.mail.mud.yahoo.com ([209.191.124.107]:5720 "HELO web37912.mail.mud.yahoo.com") by vger.kernel.org with SMTP id S1751172AbWDQRIr (ORCPT ); Mon, 17 Apr 2006 13:08:47 -0400 To: linux-fsdevel@vger.kernel.org Sender: linux-fsdevel-owner@vger.kernel.org List-Id: linux-fsdevel.vger.kernel.org Hello All, I want to know about these two questions. (1) How to get a pointer to an inode if one has only the inode number available. May I use the iget() function. I only want a reference to the inode whose number I have. (2) How to get the dentry from inode. Is d_find_alias ok. There can be multiple dentries attached to a single inode then which dentry will d_find_alias will return. I want only access to a dentry from inode number. Thanks, Uzair Lakhani __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com