Home | History | Annotate | Line # | Download | only in examples
overview revision 1.1
      1 $NetBSD: overview,v 1.1 1999/08/16 06:42:48 bgrayson Exp $
      2 
      3 Overall notes:
      4 
      5   1.  Whenever mounting anything with mount_portal, always
      6     specify absolute paths.  By specifying an absolute path for the
      7     configuration file, it can be re-parsed by sending a HUP to the
      8     mount process.  But since mount_portal calls daemon(), which
      9     does a chdir("/"), the re-parse will fail unless the
     10     specified file is absolute, not relative.
     11 
     12   2.  The mount point should always be specified as an absolute
     13     path.  Otherwise, umount may not be able to unmount it, as it
     14     first converts a relative path to an absolute path before
     15     checking against the mounted file systems (see
     16     realpath(3)).  If you mistakenly mount on portal, instead of
     17     `pwd`/portal, you can umount with "umount -R portal", which
     18     may seg fault, but it will umount.
     19 
     20 Descriptions of files in this directory:
     21 
     22   *.conf	Configuration files for the corresponding file
     23   tcp.1		Simple and advanced tcp:  daytime and finger
     24   fing.c	Program for tcp.1
     25   fs.1		Simple fs
     26   rfilter.1	Simple rfilter usage:  bunzip2/bzcat
     27   rfilter.2	Advanced rfilter usage
     28   advanced.1	A tutorial
     29 
     30 In progress:
     31   wfilter.1	Simple wfilter usage:  bzip2
     32 
     33 Most (if not all) of these examples were written by Brian Grayson
     34 (bgrayson (a] netbsd.org).  Please contact me if you have problems or
     35 improvements.
     36