Date: Mon, 07 Jul 1997 19:39:00 +0200 From: Sebastian Lederer <lederer@bonn-online.com> To: Terry Lambert <terry@lambert.org> Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: NFS locking, was: Re: NFS V3 is it stable? Message-ID: <33C129B4.41C67EA6@bonn-online.com> References: <199707022052.NAA08047@phaeton.artisoft.com>
next in thread | previous in thread | raw e-mail | index | archive | help
Hi, I have now started exploring the vfs/nfs kernel code. It appears to me that maybe some things we need for the fcntl(F_CNVT) call are already there. Namely, the nfsrv_fhtovp() function in nfs/nfs_subs.c converts a file handle (fhandle_t, not struct fid) into a vnode. So one could possibly use this function (or a modified version) to create the vnode from the handle, use falloc() to create an open file and then tie the vnode to the file struct. Question is, is the fhandle_t the same as the nfs file handle? This is only guesswork, since I am absolutely no kernel programming expert. Am I thinking in the right direction? Best regards, Sebastian Lederer -- Sebastian Lederer lederer@bonn-online.com
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?33C129B4.41C67EA6>