xfs
[Top] [All Lists]

Re: Possible bug in open_by_handle

To: unlisted-recipients:; (no To-header on input)
Subject: Re: Possible bug in open_by_handle
From: "Andi Kleen" <ak@xxxxxxx>
Date: Wed, 16 Aug 2000 01:50:31 +0200
Cc: "William L. Jones" <jones@xxxxxxxxxxxxxxxxxx>, Steve Lord <lord@xxxxxxx>, linux-xfs@xxxxxxxxxxx
In-reply-to: <20000816012942.A15731@xxxxxxxxxxxxxxxxxxx>; from ak@xxxxxxx on Wed, Aug 16, 2000 at 01:29:42AM +0200
References: <200008152007.PAA01650@xxxxxxxxxxxxxxxxxxxx> <jones@xxxxxxxxxxxxxxxxxx> <200008152007.PAA01650@xxxxxxxxxxxxxxxxxxxx> <20000815222734.A13055@xxxxxxxxxxxxxxxxxxx> <4.2.0.58.20000815171608.016a0c20@xxxxxxxxx> <20000816012942.A15731@xxxxxxxxxxxxxxxxxxx>
Sender: owner-linux-xfs@xxxxxxxxxxx
On Wed, Aug 16, 2000 at 01:29:42AM +0200, Andi Kleen wrote:
> For some access checking the nfsfh code needs to know the full path name
> of the file. For that it needs to notice when the filehandle is deleted,
> which is easiest when the dentry is connected to the normal dentry tree
> (otherwise it has to search the directory) 

The other reason I forgot to mention is that there can only
be a single dentry/link in the system for various locking reasons.
The connection to the tree can be either done by you, or by the dcache
via the inode dentry list, but of course you have to check first if it
doesn't already exist.
(again does not apply to xfs open_by_handle, because it is a new link) 

-Andi

<Prev in Thread] Current Thread [Next in Thread>