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.30 date: 2023/09/07 21:26:04
user: stefan
file: SunRPC_MountServer.st directory: goodies/communication
module: stx stc-classLibrary: communication

Description:


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



    SunRPC::MountServer debug:true

copyright

COPYRIGHT (c) 2002 by eXept Software AG All Rights Reserved This software is furnished under a license and may be used only in accordance with the terms of that license and with the inclusion of the above copyright notice. This software may not be provided or otherwise made available to, or used by, any other person. No title to or ownership of the software is hereby transferred.

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


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.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Mon, 18 Nov 2024 04:44:35 GMT