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:
parent
78d3a673aa
commit
147aae31b1
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue