tags:

views:

698

answers:

6

Is there any implementation of the NFS protocol written in C# or a good documentation thats easy to read so I can implement my own..

Both server and Client are needed but the client doesn't have to be C#, there must be some thing out there?

+1  A: 

You could try porting Alfresco JLAN Server to C#. It's written in Java but the two languages are very similar.

Alfresco JLAN uses a virtual file system interface that allows you to plug in your own file system implementation with the core server handling all of the network protocol exchange between the client and server. JLAN is also the only Java implementation of Window’s CIFS (Common Internet File System), in addition to supporting NFS and FTP.

http://www.alfresco.com/products/aifs/

Robert Harvey
A couple more java NFS implementations: http://galaxy.sourceforge.net/ includes a client as an example, http://void.org/~steven/jnfs/ is a server and http://yanfs.dev.java.net/ is a client...
Stobor
+2  A: 

Assuming you weren't looking at this as a learning experience I would have suggested taking a C++/C implementation and wrapping it via C++/CLI.

However the only mention of an open source windows client for NFS 4 is this project with the financial support of MS and the university who wrote the reference implementation for many other OS's

That that this is their statement of intent and suggests a two year project sorry.

ShuggyCoUk
A: 

Given that NFS is based on ONC RPC and XDR, I recommend using an XDR implementation for C#, such as RPC.NET.

Martin v. Löwis
A: 

I recommend starting with the latest stable source code of NFS, and then run it from Cygwin (see below). You would then start with a fully-functional well-tested NFS client and server, which you could then tweak as you desire.

Try this site: Cygwin NFS Server HOWTO

Steven
+1  A: 

Hi you can check at my open source project http://code.google.com/p/nekodrive You can use directly NekoDrive.NFS c# library that wraps my implementation of V2 e V3 NFS Protocol (V4.1 is coming).. It doesn't support the full protocol yet but It works for basic browsing/download/upload functions..

hope this helps

mirko gatto
i implemented my own nfs engine by now :P
Petoj
hehe.. I'm a bit in late :D Anyway I had a similar problem than yours (in my case speaking with nfs server on vxworks from windows) and I implemented my own solution. I released the code to open source hoping this helps avoiding to somebody the RPC protocol :D
mirko gatto
A: 

Here is a remotetea port that seems to work http://sourceforge.net/projects/remoteteanet/

mako