home *** CD-ROM | disk | FTP | other *** search
/ Network CD 2 / Network CD - Volume 2.iso / others / netfs / netfs.doc < prev    next >
Encoding:
Text File  |  1993-11-26  |  7.2 KB  |  214 lines

  1.  
  2.                NetFS -- network file system for AmiTCP
  3.                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  4.  
  5.                            by Timo Rossi
  6.  
  7.  
  8.                       Version 0.53 (20-Nov-93)
  9.  
  10.  
  11.    NetFS is a network filesystem for Amigas running the AmiTCP protocol stack.
  12.  
  13. Requirements:
  14. ~~~~~~~~~~~~~
  15.  · AmigaOS 2.04 or later (AmiTCP requires it anyway)
  16.  
  17.  · AmiTCP version 2.0 or later (hopefully the later versions are binary
  18.    compatible with 2.0)
  19.  
  20.  · Some sort of network interface that has a Sana2 driver and works
  21.    with AmiTCP (Ethernet, ArcNet, SLIP, CSLIP, PLIP or something other).
  22.  
  23.  
  24. Installation instructions:
  25. ~~~~~~~~~~~~~~~~~~~~~~~~~~
  26.  
  27.  · Make sure that you have AmiTCP configured properly and it can communicate
  28.    between the machines you want to use with NetFS (you can use
  29.    the ping-command for checking this)
  30.  
  31.  · Copy netfs-handler to L:-directory on client machine
  32.  
  33.  · Copy netfs-server to AmiTCP:bin-directory on server machine
  34.  
  35.  · Copy netmount to some directory that is in your path (AmiTCP:bin
  36.    is a good place)
  37.  
  38.  · Add the following line to the AmiTCP:db/services on all machines
  39.    that will use NetFS (both client and server):
  40.  
  41. amiganetfs    2500/tcp
  42.  
  43.    You may select another port number if the default 2500 conflicts with
  44.    something (port 2500 is not officially registered for NetFS)
  45.  
  46.    If you already have AmiTCP running and don't want to reboot the machine,
  47.    you should send the RESET-command to the AmiTCP AREXX-port to get it
  48.    to re-read the configuration file.
  49.  
  50.    (You can also use the AmiTCP AREXX port to add the service entry without
  51.     editing the netdb file. See AmiTCP documentation for details)
  52.  
  53. ·  Add the following line to the AmiTCP:db/inetd.conf
  54.  
  55. amiganetfs stream    tcp nowait root amitcp:bin/netfs-server
  56.  
  57.    If you have put netfs-server in some other directory than amitcp:bin,
  58.    you should use that directory name here instead.
  59.  
  60.    If you already have AmiTCP running and don't want to reboot the machine,
  61.    you should send a Ctrl-F signal to inetd with the break-command.
  62.  
  63.  
  64. ·  Use the netmount-command to mount the partitions you want.
  65.    The command syntax is:
  66.  
  67. netmount hostname remotedev localdev
  68.  
  69.   For example, if you want to mount drive dh0: on a machine called Amiga1
  70.   and you want to call the local device rh0:, you can use the following:
  71.  
  72. netmount Amiga1 dh0 rh0
  73.  
  74.   The full command template for netmount is:
  75.  
  76. SERVER=HOST/A,REMOTEDEV/A,LOCALDEV/A,HANDLER/K,NOACT/S:
  77.  
  78.   If you have put netfs-handler in some other directory than L: or renamed
  79.   it, you can specify its filename with the HANDLER keyword.
  80.  
  81.   Normally netmount automatically activates the mounted device (the same
  82.   way as 'Mount=1' keyword in mountlist). If you don't want that to
  83.   happen, you can use the NOACT-switch. In that case the device process
  84.   starts when the device is first referenced.
  85.  
  86.  
  87. MountLists (optional):
  88. ~~~~~~~~~~~~~~~~~~~~~~
  89.   Alternatively you can make the mountlist entries and use the normal mount-
  90.   command. You can put these in the normal DEVS:MountList file or a separate
  91.   file and use the Mount FROM-option. If you have AmigaDOS 2.1 or newer,
  92.   you can also use the new style mountfiles instead of mountlists.
  93.  
  94.   Here is an example mountlist entry:
  95.  
  96. RH0:
  97.     Handler = L:netfs-handler
  98.     Priority = 5
  99.     StackSize = 5000
  100.     GlobVec = -1
  101.     Mount = 1
  102.     Startup = Server-machine.name.domain/Device-DH0:
  103. #
  104.  
  105.    The only parameters that you need to change are the server machine name
  106.    and the device name (The syntax is a little strange for compatibility with
  107.    different versions of the Mount-command. Most of them don't like '='-signs
  108.    on the startup-line)
  109.  
  110.    If you use the 2.1+ mountfiles, you don't need the device name in the beginning
  111.    or the '#' in the end.
  112.  
  113.  
  114.    (But it is so much easier to use the netmount-command, that you probably
  115.    don't want to use mountlists)
  116.  
  117.  
  118. Security (or the lack of it):
  119. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  120.    Netfs has a couple of primitive security features.
  121.  
  122.     · You can prevent mounting a partition by putting a file called '.nomount'
  123.       in the root directory of that partition.
  124.  
  125.     · You can cause a partition to be mounted in read-only mode by putting
  126.       a file called '.readonly' in the root directory of that partition.
  127.  
  128.   You cannot control which machines may connect to the server, so it might
  129.   not be a good idea to connect a machine with netfs-server to the
  130.   global Internet (of course you can use a strange port number
  131.   and hope that nobody guesses it (security through obscurity)).
  132.  
  133.   It is likely that future versions of netfs have more advances security/
  134.   access control features.
  135.  
  136.  
  137. Volume names:
  138. ~~~~~~~~~~~~~
  139.    Netfs normally automatically uses the remote volume name in the mounted
  140.    device, but if there is a name collision (another volume/device/assign
  141.    of the same name already exists), it modifies the name by adding
  142.    an underscore and a number to it.
  143.  
  144.    You can relabel the mounted volume, but this does not affect the actual
  145.    disk on the server machine.
  146.  
  147.  
  148. Workbench:
  149. ~~~~~~~~~~
  150.    Netfs does not allow access (or Open(), anyway) to a file called '.backdrop',
  151.    so left out icons do not work over the network. This is a feature, not a bug.
  152.  
  153.  
  154. Reconnect:
  155. ~~~~~~~~~~
  156.    If the server machine is rebooted, NetFS will automatically reconnect
  157.    to it when it is running again. However, there may be long timeouts
  158.    after a connection failure before NetFS gives up. This is a normal
  159.    for the TCP protocol that NetFS uses for its connections.
  160.  
  161.    Sometimes NetFS may lose the connection to the server machine so that
  162.    it doesn't automatically try to reconnect. In that case, you can
  163.    try to reconnect by using the DiskChange-command.
  164.  
  165.    You can also force NetFS to close the connection by sending ACTION_DIE
  166.    packet to it (for example with the 'die'-command that comes with MSH).
  167.  
  168.  
  169. Known problems:
  170. ~~~~~~~~~~~~~~~
  171.    - speed/performance is not the best possible
  172.  
  173.    - does not support all 2.0 packet types
  174.      (does not support notification or file locking, but does support links)
  175.  
  176.    - because netfs uses one TCP connection and separate server/client processes
  177.      for each mounted device, memory usage is probably more than actually
  178.      necessary if netfs was implemented in some other, smarter way...
  179.  
  180.  
  181. Compatibility note:
  182. ~~~~~~~~~~~~~~~~~~~
  183.    The authors of AmiTCP have plan to change the protocol that servers
  184.    use to communicate with inetd. This may cause this version  of netfs-server
  185.    to be incompatible with future AmiTCP versions.
  186.  
  187.  
  188. Copyright and distribution:
  189. ~~~~~~~~~~~~~~~~~~~~~~~~~~~
  190.    NetFS is Copyright © 1993 by Timo Rossi. It can be freely distributed
  191.    for non-commercial purposes. It can be included on disk collections such
  192.    as Fred Fish's AmigaLibDisks or CD-ROMs such as the AmiNET CD-ROM.
  193.  
  194.    It may not be used for military purposes or life-critical purposes such
  195.    as controlling nuclear reactors or guidance system for a manned spacecraft.
  196.  
  197.    If you want to include netfs in a commercial product, you should contact
  198.    me first (my address is in the next section).
  199.  
  200.    NetFS is NOT under the GNU General Public Licence.
  201.             ~~~
  202.    Source code is not currently available, but it may be in the future...
  203.  
  204.  
  205. Contact information:
  206. ~~~~~~~~~~~~~~~~~~~~
  207.    Timo Rossi
  208.    Mattilankatu 40 A 4
  209.    40600 Jyväskylä
  210.    FINLAND
  211.  
  212.    E-Mail:  trossi@jyu.fi
  213.  
  214.