eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'SunRPC::NFSServer':

Home

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

Class: NFSServer (in SunRPC)


Inheritance:

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

Package:
stx:goodies/communication
Category:
Net-Communication-SunRPC-NFS
Version:
rev: 1.49 date: 2019/07/15 11:25:28
user: cg
file: SunRPC_NFSServer.st directory: goodies/communication
module: stx stc-classLibrary: communication
Author:
Claus Gittinger

Description:


an nfs daemon (nfsd); see RFC1057 and examples.
*** VERY COOL - see examples in MountServer ***

No need to start separately - will be started by MountServer;
see instructions there.



    SunRPC::NFSServer start
    SunRPC::NFSServer startUDP

    TraceArgs := true.


Related information:

    RFC1057

Class protocol:

accessing
o  handleFor: aPath

o  pathForHandle: handleNr

change & update
o  flushCachedClassInfoFor: aClass

o  update: something with: aParameter from: changedObject
Transcript show:'NFSServer: update:' , something storeString.

spec
o  xdr

startup
o  deinitialize
self deinitialize

o  initialize
self initialize
self initDefinitions.


Instance protocol:

helpers
o  allPackages
CachedPackages := nil.
self basicNew allPackages

o  attributesFor: aPathName
Transcript showCR:aPathName.

o  dataFor: aPathName
Transcript showCR:'cache hit ', LastFile pathName.

o  filesFor: dirPath
'windows'

o  handleFor: aPathName

o  physicalFileNameFor: aPathName

o  sourceForClass: cls

o  unpackFileHandle: handle
only the first 4 bytes are used here...

operations
o  create: args
diropargs

o  getattr: args

o  link: args
diropargs

o  lookup: args
diropargs

o  mkdir: args
diropargs

o  read: args
oops - file no longer exists

o  readdir: args
fullName := dirPath asFilename constructString:nm.

o  readlink: args
fhandle

o  remove: args
diropargs

o  rename: args
diropargs

o  rmdir: args
diropargs

o  root
void

o  setattr: args
fhandle

o  statfs: args
should not happen

o  symlink: args
diropargs

o  write: args
ignored

o  writecache
void

queries
o  portNumbers

o  simulatedFileHome


Demonstration:


    SunRPC::MountServer start


    SunRPC::MountServer startUDP


Examples:


SunRPC::NFSServer start SunRPC::NFSServer startUDP SunRPC::RPCServer killAll. SunRPC::NFSServer killAll. SunRPC::NFSServer initialize

ST/X 7.2.0.0; WebServer 1.670 at bd0aa1f87cdd.unknown:8081; Fri, 26 Apr 2024 13:09:06 GMT