home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / gnu / utils / bug / 2437 < prev    next >
Encoding:
Internet Message Format  |  1993-01-21  |  1.8 KB

  1. Path: sparky!uunet!zaphod.mps.ohio-state.edu!pacific.mps.ohio-state.edu!cis.ohio-state.edu!trantor.harris-atd.com!laprade
  2. From: laprade@trantor.harris-atd.com (Ken Laprade)
  3. Newsgroups: gnu.utils.bug
  4. Subject: `df file' shouldn't imply `-a'
  5. Date: 21 Jan 1993 18:04:27 -0500
  6. Organization: GNUs Not Usenet
  7. Lines: 36
  8. Sender: daemon@cis.ohio-state.edu
  9. Approved: bug-gnu-utils@prep.ai.mit.edu
  10. Distribution: gnu
  11. Message-ID: <9301211339.AA11801@trantor.harris-atd.com>
  12.  
  13. When `df' is given pathnames as arguments, it implicitely sets the `-a'
  14. flag.  At our installation (of Sun 4's running SunOS4.1.1), the
  15. unfortunately large and poorly maintained `auto.direct' is often out of
  16. date with respect to `/etc/exports' files or even what machines exist.
  17. Checking `ignored' filesystems in this situation produces obnoxious timeout
  18. delays.  This also causes undesirable reports for automounted filesystems:
  19.  
  20.    > df .
  21.    Filesystem         1024-blocks  Used Available Capacity Mounted on
  22.    ne:(pid129)        ...        ...    ...       /netshare2
  23.  
  24. But without the `-a' set:
  25.  
  26.    Filesystem         1024-blocks  Used Available Capacity Mounted on
  27.    ne:/mnt3c        ...        ...    ...       /tmp_mnt/netshare2
  28.  
  29. How about not setting `-a' unless specifically requested:
  30.  
  31. --- fileutils-3.3/src/df.c    Thu Jul 16 23:38:40 1992
  32. +++ /tmp/SC-df.c    Thu Jan 21 08:29:46 1993
  33. @@ -151,7 +151,7 @@
  34.    if (optind != argc)
  35.      {
  36.        /* Display explicitly requested empty filesystems. */
  37. -      show_all_fs = 1;
  38. +/*      show_all_fs = 1; */
  39.  
  40.        /* stat all the given entries to make sure they get automounted,
  41.       if necessary, before reading the filesystem table.  */
  42.  
  43. ---
  44. Ken Laprade            INTERNET: laprade@trantor.harris-atd.com
  45. Harris Corporation         Usenet:  ...!uunet!x102a!trantor!laprade
  46. PO Box 37, MS 16/1912        Voice: (407)727-4433
  47. Melbourne, FL 32902        FAX: (407)729-3363
  48.  
  49.