armbian-next: wait_for_disk_sync(): warn only if more than 30s fsync

This commit is contained in:
Ricardo Pardini 2023-01-23 13:50:58 +01:00
parent ed3416dc7d
commit b82badd214
No known key found for this signature in database
GPG Key ID: 3D38CA12A66C5D02

View File

@ -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