By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,036 Members | 1,963 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,036 IT Pros & Developers. It's quick & easy.

NFS server

P: n/a
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?

Nov 24 '06 #1
Share this Question
Share on Google+
3 Replies


P: n/a
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?
Ask the wise guy. All others install an NFS server.

Diez
Nov 24 '06 #2

P: n/a
srj wrote:
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

--
BOFH excuse #279:

The static electricity routing is acting up...

Nov 24 '06 #3

P: n/a
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 <st****@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.

Nov 28 '06 #4

This discussion thread is closed

Replies have been disabled for this discussion.