NFS server

S

srj

i wish to develop an NFS server usin python from scratch( some wise guy
told me i'ts easy!).
can i get any kinda tutorial for this??

any suggestions on how 2 begin?
 
D

Diez B. Roggisch

srj said:
i wish to develop an NFS server usin python from scratch( some wise guy
told me i'ts easy!).
can i get any kinda tutorial for this??

any suggestions on how 2 begin?

Ask the wise guy. All others install an NFS server.

Diez
 
B

Bjoern Schliessmann

srj said:
i wish to develop an NFS server usin python from scratch( some
wise guy told me i'ts easy!).

That wise guy must be very wise, or stupid 8)
can i get any kinda tutorial for this??

any suggestions on how 2 begin?

- Read RFCs about NFS
- Read the Python tutorial
- If you want it even easier, read the Twisted tutorial additionally

Regards,


Björn
 
S

Stuart D. Gathman

i wish to develop an NFS server usin python from scratch( some wise guy
told me i'ts easy!).
can i get any kinda tutorial for this??

any suggestions on how 2 begin?

NFS is an RPC based protocol. The first step is to be able to do
SunRCP/ONCRPC. Python has an 'xdrlib' which is how parameters are
marshalled, unmarshalled in sunrpc. If allowed under "from scratch", you
could wrap the C rpc lib for python - they handle retries and other low
level stuff. You could look "Remote Tea" for Java, and translate to
python to get a pure python oncrpc lib. Or you could look for such a
package already written (a quick search didn't reveal any).

Once you have rpc, then it is "just" a matter of having your python server
implement the set of calls specified for NFS. BTW, apparently python was
used for quickly building test rigs while developing NFS v4.

Having a framework for python NFS server could be useful - think custom
filesystem. Although a python binding for fuse + C NFS server would
be more general (use locally as well as remotely).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,768
Messages
2,569,574
Members
45,048
Latest member
verona

Latest Threads

Top