eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SunRPC::MountServer':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: MountServer (in SunRPC)


Inheritance:

   Object
   |
   +--SunRPC::RPCEndPoint
      |
      +--SunRPC::RPCServer
         |
         +--SunRPC::MountServer

Package:
stx:goodies/communication
Category:
Net-Communication-SunRPC-NFS
Version:
rev: 1.27 date: 2017/11/18 09:52:05
user: cg
file: SunRPC_MountServer.st directory: goodies/communication
module: stx stc-classLibrary: communication
Author:
Claus Gittinger

Description:


a mount daemon (mountd); see RFC1057 and examples.
*** VERY COOL - see examples ***



    SunRPC::MountServer debug:true


Related information:

    RFC1057

Class protocol:

spec
o  xdr


Instance protocol:

operations
o  dump

o  export

o  mnt: args
fs := self simulatedFileSystemFor:dirpath.

o  umnt: args
remove this one

o  umntall

private
o  simulatedFileSystemFor: dirpath

o  startNFSServerIfNotYetRunning

queries
o  exportedFileSystems

o  portNumbers


Demonstration:


    SunRPC::MountServer start


    SunRPC::MountServer startUDP


Examples:


SunRPC::MountServer killAll. SunRPC::MountServer initialize get it running: 1) evaluate: SunRPC::MountServer start or, SunRPC::MountServer startUDP 2) (in a terminal), create a directory: mkdir /smalltalk mkdir /smalltalk/local mkdir /smalltalk/<hostName> 3) add the following line(s) to your /etc/fstab (must be root): localhost:/ /smalltalk/local nfs rw,nolock,noauto,user,noatime,bg,soft,intr, retry=1,mountprog=200003,nfsprog=x200004 and/or (even works remote): <hostname>:/ /smalltalk/<hostname> nfs rw,nolock,noauto,user,noatime,bg,soft, intr,retry=1,mountprog=200003,nfsprog=x200004 4) mount it/them with: mount /smalltalk/local mount /smalltalk/<hostname> finally, change directory to /smalltalk/local or /smalltalk/<hostname> and see (ls) what is there...

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 23:27:38 GMT