Silence extfs on unmount.

This commit is contained in:
Jonas 'Sortie' Termansen 2015-09-27 23:49:38 +02:00
parent 01afa43fb0
commit 1e26626cc2
1 changed files with 2 additions and 3 deletions

View File

@ -713,6 +713,8 @@ int fsmarshall_main(const char* argv0,
Filesystem* fs,
Device* dev)
{
(void) argv0;
// Stat the root inode.
struct stat root_inode_st;
Inode* root_inode = fs->GetInode((uint32_t) EXT2_ROOT_INO);
@ -779,11 +781,8 @@ int fsmarshall_main(const char* argv0,
// Sync the filesystem before shutting down.
if ( dev->write )
{
fprintf(stderr, "%s: filesystem server shutting down, syncing...", argv0);
fflush(stderr);
// TODO: Need to close all open inodes here, and in the fuse backend too.
fs->Sync();
fprintf(stderr, " done.\n");
}
close(serverfd);