NAME

flush - update disks from buffer cache, sync filesystem changes.

DOC DATE

19990909

DESCRIPTION

The kernel call for sync'ing the buffer cache to disk is sync(). The command to call that call is called flush and/or sync in cLIeNUX. Since flush is so simple as far as the user-space interface, it is one of the first commands in cLIeNUX implemented in C using cLIeNUX libsys instead of libc. cLIeNUX flush is thus a static ELF executable of about 600 bytes.

This is the sourcecode for flush...


_start(){
sync();
exit(0);
}
 
Consider running a cron job or script to flush your system every few minutes if you are subject to sudden power-offs. Filesystem changes that aren't flushed before a powerdown will be lost, at best.

RIGHTS

The cLIeNUX flush executable and this seedoc are Coryright 1999 Richard Allen Hohensee.
They are released for redistribution only as part of an intact entire cLIeNUX Core. The sourcecode for flush is too simple to copyright.