Question

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?

Was it helpful?

Solution

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.

OTHER TIPS

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

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/

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

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

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

These links may help:

The first is a Code Project article describing an implementation of a C# NFS Server

http://www.codeproject.com/KB/IP/NFSServer.aspx

The second is the public github repo. that contains the source

https://github.com/petebarber/NFS

I've started an NFS v2 server based on jnfs (a java implementation of an NFS server) in C#.

The project is hosted on github here https://github.com/shellscape/Snarf

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top