Merge pull request #2521 from cgwalters/syncfs-only-log

deploy: Also log to journal if we time out global sync()
This commit is contained in:
Luca Bruno 2022-01-20 16:58:05 +00:00 committed by GitHub
commit b9f6632b70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 1 deletions

View File

@ -1647,7 +1647,10 @@ full_system_sync (OstreeSysroot *self,
while (!syncdata->success)
{
if (!g_cond_wait_until (&syncdata->cond, &syncdata->mutex, end_time))
break;
{
ot_journal_print (LOG_INFO, "Timed out waiting for global sync()");
break;
}
}
g_mutex_unlock (&syncdata->mutex);
sync_data_unref (syncdata);