1
0
Fork 0
mirror of https://gitlab.com/sortix/sortix.git synced 2023-02-13 20:55:38 -05:00

Sync extfs device file descriptor.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-05-17 00:26:23 +02:00
parent 78d3a673aa
commit 147aae31b1

View file

@ -133,11 +133,13 @@ void Device::Sync()
while ( dirty_block || sync_in_transit )
pthread_cond_wait(&sync_thread_cond, &sync_thread_lock);
pthread_mutex_unlock(&sync_thread_lock);
fsync(fd);
return;
}
while ( dirty_block )
dirty_block->Sync();
fsync(fd);
}
void Device::SyncThread()