Re: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-13 Thread J. Bruce Fields
On Tue, Feb 13, 2007 at 03:19:40PM -0800, Trond Myklebust wrote: > On Tue, 2007-02-13 at 18:16 -0500, J. Bruce Fields wrote: > > On Tue, Feb 13, 2007 at 03:13:01PM -0800, Trond Myklebust wrote: > > > On Sun, 2007-02-11 at 10:06 +0200, Menny Hamburger wrote: > > > > We implement our own nfsd in user

Re: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-13 Thread Trond Myklebust
On Tue, 2007-02-13 at 18:16 -0500, J. Bruce Fields wrote: > On Tue, Feb 13, 2007 at 03:13:01PM -0800, Trond Myklebust wrote: > > On Sun, 2007-02-11 at 10:06 +0200, Menny Hamburger wrote: > > > We implement our own nfsd in user space - so the kernel nfsd (as well > > > as the lockd) are disabled. >

Re: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-13 Thread J. Bruce Fields
On Tue, Feb 13, 2007 at 03:13:01PM -0800, Trond Myklebust wrote: > On Sun, 2007-02-11 at 10:06 +0200, Menny Hamburger wrote: > > We implement our own nfsd in user space - so the kernel nfsd (as well > > as the lockd) are disabled. > > We need the handle in order to associate a kernel file handle w

RE: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-13 Thread Trond Myklebust
enny Hamburger > Cc: linux-kernel@vger.kernel.org > Subject: Re: Getting the nfs_fh of a specific file/dir from the kernel > > On Thu, Feb 08, 2007 at 06:38:48PM +0200, Menny Hamburger wrote: > > I have a piece of code in my 2.6 kernel that associates an ioctl > > file_opera

RE: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-11 Thread Menny Hamburger
: Thursday, February 08, 2007 10:12 PM To: Menny Hamburger Cc: linux-kernel@vger.kernel.org Subject: Re: Getting the nfs_fh of a specific file/dir from the kernel On Thu, Feb 08, 2007 at 06:38:48PM +0200, Menny Hamburger wrote: > I have a piece of code in my 2.6 kernel that associates an io

Re: Getting the nfs_fh of a specific file/dir from the kernel

2007-02-08 Thread J. Bruce Fields
On Thu, Feb 08, 2007 at 06:38:48PM +0200, Menny Hamburger wrote: > I have a piece of code in my 2.6 kernel that associates an ioctl > file_operation to nfs in file.c and dir.c. > This ioctl sends the nfs_fh to a userland application. Doesn't /proc/fs/nfsd/filehandle do what you want already? See

Getting the nfs_fh of a specific file/dir from the kernel

2007-02-08 Thread Menny Hamburger
Hi, I have a piece of code in my 2.6 kernel that associates an ioctl file_operation to nfs in file.c and dir.c. This ioctl sends the nfs_fh to a userland application. I have been trying to remove this ugly code by creating my own device and implementing the ioctl but I keep getting junk instead. P