]> git.ipfire.org Git - people/mlorenz/ipfire-2.x.git/commitdiff
mountfs: Remove excessive sync-ing before umount
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Aug 2023 09:48:35 +0000 (09:48 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 15 Aug 2023 09:48:35 +0000 (09:48 +0000)
The system should perform all write operations when sync is called and
only return when the write queues are empty.

There is no additional benefit for calling sync again as the buffers
should be empty. If data is still being lost, then that is a bug in
either the storage device or driver.

As the (re-)boot process is already so slow, I would like to get rid of
any unnecessary delays.

Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/initscripts/system/mountfs

index 2e2ff0b5b690d574edc73211887b53776743ba53..8975eb02c765de677ae8e404fc00b6825e52b9dd 100644 (file)
@@ -45,9 +45,7 @@ case "${1}" in
 
        stop)
                boot_mesg "Syncing discs..."
-               sync && sync
-               sleep 2
-               sync && sync
+               sync
                evaluate_retval
 
                # ExtraHD