lkml.org 
[lkml]   [1997]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: knfsd and system crashes
Martin von Loewis wrote:
> PMFJI, I think the problem is the assumption that the volume has to
> be searched in the first place. Most file systems can open an inode
> very efficiently when given an inode number.
>
> The Linux VFS currently offers the iget function to retrieve an inode
> when given an inode number. Unfortunately, this interface is not very
> reliable when it comes to error checking, like when the client gives a
> stale handle. Nevertheless, this is IMHO the route to go. You can
> either extend the read_inode operation to support better error
> reporting for deleted inodes, or introduce new interface.

Hi Martin,
The problem is that I need a dentry (i.e. a path) in order to use the
file in the filehandle. Getting the inode from iget() is no problem, but
unless I've overlooked something major, I don't see how this helps get
the path.

I've included the parent directory inode number in the FH as well, but
if the parent dentry isn't cached somewhere, I don't see any way around
searching the exported volumes to see who owns the inode in question.

Regards,
Bill

\
 
 \ /
  Last update: 2005-03-22 13:40    [W:1.198 / U:0.100 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site