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