NFS server
Stuart D. Gathman
stuart at bmsi.com
Mon Nov 27 22:16:08 EST 2006
On Fri, 24 Nov 2006 05:00:53 -0800, srj wrote:
> 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).
--
Stuart D. Gathman <stuart at bmsi.com>
Business Management Systems Inc. Phone: 703 591-0911 Fax: 703 591-6154
"Confutatis maledictis, flamis acribus addictis" - background song for
a Microsoft sponsored "Where do you want to go from here?" commercial.
More information about the Python-list
mailing list