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:
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user