2006-11-07 18:51:02

by Murali Bashyam

[permalink] [raw]
Subject: intercepting NFS RPC requests

Hi

Is there a feature on the linux v3 or v4 NFS server to allow a process to
intercept the NFS RPC requests for file operations (open, close, read, write
etc) and handle them in user space? If so, can these be handled
asynchronously?

Alternatively, if this is not possible, is this achievable through VFS
i.ehave a process create and register a file system through VFS and
export it
through NFS? Now when the server handles a client's file operation, it goes
through VFS and ends up with that vector registered by that process?

Thx,
MB


Attachments:
(No filename) (539.00 B)
(No filename) (571.00 B)
(No filename) (373.00 B)
(No filename) (140.00 B)
Download all attachments

2006-11-07 19:36:40

by J. Bruce Fields

[permalink] [raw]
Subject: Re: intercepting NFS RPC requests

On Tue, Nov 07, 2006 at 10:50:54AM -0800, Murali Bashyam wrote:
> Is there a feature on the linux v3 or v4 NFS server to allow a process to
> intercept the NFS RPC requests for file operations (open, close, read, write
> etc) and handle them in user space?

No.

> If so, can these be handled asynchronously?
>
> Alternatively, if this is not possible, is this achievable through VFS
> i.ehave a process create and register a file system through VFS and
> export it
> through NFS? Now when the server handles a client's file operation, it goes
> through VFS and ends up with that vector registered by that process?

No. You could modify fuse to support nfsd, or you could write a
userspace NFS server (or modify an existing server).

--b.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
NFS maillist - [email protected]
https://lists.sourceforge.net/lists/listinfo/nfs

2006-11-07 20:36:38

by Murali Bashyam

[permalink] [raw]
Subject: Re: intercepting NFS RPC requests

On 11/7/06, J. Bruce Fields <[email protected]> wrote:
>
> On Tue, Nov 07, 2006 at 10:50:54AM -0800, Murali Bashyam wrote:
> > Is there a feature on the linux v3 or v4 NFS server to allow a process
> to
> > intercept the NFS RPC requests for file operations (open, close, read,
> write
> > etc) and handle them in user space?
>
> No.
>
> > If so, can these be handled asynchronously?
> >
> > Alternatively, if this is not possible, is this achievable through VFS
> > i.ehave a process create and register a file system through VFS and
> > export it
> > through NFS? Now when the server handles a client's file operation, it
> goes
> > through VFS and ends up with that vector registered by that process?
>
> No. You could modify fuse to support nfsd, or you could write a
> userspace NFS server (or modify an existing server).


Isn't it simpler (and potentially inefficient) to export the NFS mount
point as a FUSE filesystem?

Murali

--b.
>


Attachments:
(No filename) (948.00 B)
(No filename) (1.41 kB)
(No filename) (373.00 B)
(No filename) (140.00 B)
Download all attachments