Subject: Re: NFS filehandle <-> local file descriptor ?
To: None <tech-kern@netbsd.org, tech-userlevel@netbsd.org>
From: Jason R Thorpe <thorpej@zembu.com>
List: tech-kern
Date: 04/10/2000 07:40:38
On Mon, Apr 10, 2000 at 03:04:53PM +0200, Manuel Bouyer wrote:
> Hi,
> I'm looking at writing the server side of rpc.lockd.
> In order to properly implement this I need to be able to map back the
> filehandle sent by the client to the local file to lock (via flock or fnctl).
> I just need a file descriptor, I don't need the real path.
> Is there a way to do this from userland ?
Yes! fhopen(2)! :-)
--
-- Jason R. Thorpe <thorpej@zembu.com>