From b82badd214059b07558ee6955ecece331d11da20 Mon Sep 17 00:00:00 2001 From: Ricardo Pardini Date: Mon, 23 Jan 2023 13:50:58 +0100 Subject: [PATCH] armbian-next: wait_for_disk_sync(): warn only if more than 30s fsync --- lib/functions/host/host-utils.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/host/host-utils.sh b/lib/functions/host/host-utils.sh index 0963fcdefa..1345ac27b1 100644 --- a/lib/functions/host/host-utils.sh +++ b/lib/functions/host/host-utils.sh @@ -331,7 +331,7 @@ function get_descendants_of_pid_array() { # So run sync under "timeout" in a loop, until it completes successfully. # call: wait_for_disk_sync "after writing a huge file to disk" function wait_for_disk_sync() { - declare -i timeout_seconds=10 + declare -i timeout_seconds=30 declare -i sync_worked=0 declare -i sync_timeout_count=0 declare -i total_wait=0