For all that want to issue a fast reboot and be sure all buffers are wrote to disks, i did this program Diskflush soon will be published on Aminet:
INTRODUCTION
===========================================================================
DiskFlush is a utility that ensures all filesystem buffers are written to
disk. It's especially useful before performing a fast reboot to prevent any
data loss from cached writes that haven't yet been committed to disk.
When the Amiga filesystem caches data, there's always a short delay before
it actually writes that data to physical media. DiskFlush forces an immediate
write of all cached data across all mounted volumes.
REQUIREMENTS
===========================================================================
- AmigaOS 2.0 or higher
INSTALLATION
===========================================================================
Simply copy DiskFlush to a location in your path, such as:
C: (System commands directory)
SYS:Tools (Common tools directory)
USAGE
===========================================================================
DiskFlush [QUIET]
Options:
QUIET - Suppresses all progress messages
OPERATION
===========================================================================
DiskFlush performs the following operations for each mounted volume:
1. Sends ACTION_FLUSH packet to write all dirty buffers to disk
2. Sends ACTION_INHIBIT with DOSTRUE to perform disk driver update
3. Sends ACTION_INHIBIT with DOSFALSE to release the inhibition
This ensures a complete synchronization of all cached data with physical
media across all mounted drives in your system.
EXAMPLES
===========================================================================
Standard use:
DiskFlush
Silent operation (useful in scripts):
DiskFlush QUIET
Before reboot:
DiskFlush
reboot