NFS server

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • srj

    NFS server

    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?

  • Diez B. Roggisch

    #2
    Re: NFS server

    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

    Comment

    • Bjoern Schliessmann

      #3
      Re: NFS server

      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...

      Comment

      • Stuart D. Gathman

        #4
        Re: NFS server

        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@bmsi.co m>
        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.

        Comment

        Working...