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
1 changed files with 2 additions and 0 deletions

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()