home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / os / linux / 25494 < prev    next >
Encoding:
Text File  |  1993-01-25  |  1.7 KB  |  38 lines

  1. Newsgroups: comp.os.linux
  2. Path: sparky!uunet!news.claremont.edu!news!jwinstea
  3. From: jwinstea@fenris.claremont.edu (Jim Winstead Jr.)
  4. Subject: Re: why does 'df' sync?
  5. In-Reply-To: basic@nettis.norlin.se's message of Tue, 26 Jan 1993 01:31:01 GMT
  6. Message-ID: <JWINSTEA.93Jan25202617@fenris.claremont.edu>
  7. Sender: news@muddcs.claremont.edu (The News System)
  8. Organization: Harvey Mudd College, WIBSTR
  9. References: <1993Jan26.013101.17495@nettis.norlin.se>
  10. Date: 26 Jan 93 04:26:17 GMT
  11. Lines: 25
  12.  
  13. In article <1993Jan26.013101.17495@nettis.norlin.se> basic@nettis.norlin.se (Daniel Brahneborg) writes:
  14.  
  15.    Can somebody /please/ tell me why 'df' always does a sync
  16.    before displaying the numbers? If you have gcc running this
  17.    could take a substantial amount of time.
  18.  
  19. You didn't say where your 'df' came from, but in any case, it's 99%
  20. likely that the source came from the GNU file utilities.
  21.  
  22. On some other Unix systems, the sync() is necessary so that 'df' will
  23. get all the current information.  This isn't necessary on Linux
  24. because of the way that Linux keeps track of the various information.
  25.  
  26. The problem is, the GNU df is set up to do the sync(), and only if
  27. whoever compiled the program ifdef's out the sync() do you get the
  28. extra speed of not having to wait for a sync().
  29.  
  30. Basically, if it's that big of a deal to you, get the source to the
  31. GNU file utilities and recompile, after editing out the code that does
  32. a sync() in src/df.c.
  33. --
  34. loveritablessencentipedependentalism+      Jim Winstead Jr. (CSci '95)
  35. andaterrificklengtherealityearguessy|      Harvey Mudd College, WIBSTR
  36. mpathybridgenerationiceremonymphysic|   jwinstea@jarthur.Claremont.EDU
  37. alendareadvertisexpresshothoughthend+ or jwinstea@fenris.Claremont.EDU
  38.