From: Ben Gras Date: Mon, 13 Feb 2006 10:28:42 +0000 (+0000) Subject: Don't sync before exiting drivers. X-Git-Tag: v3.1.2a~370 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/Bv9ARM.ch09.html?a=commitdiff_plain;h=b9bdbcba1b96b27d39f15371ab1135fe5716ce2f;p=minix.git Don't sync before exiting drivers. Wipe inodes of pipes in truncate_inode(), to avoid the size remaining at PIPE_SIZE causing pipes to break. --- diff --git a/servers/fs/link.c b/servers/fs/link.c index 036fce832..c43622074 100644 --- a/servers/fs/link.c +++ b/servers/fs/link.c @@ -404,6 +404,7 @@ off_t newsize; /* inode must become this size */ /* Next correct the inode size. */ if(!waspipe) rip->i_size = newsize; + else wipe_inode(rip); /* Pipes can only be truncated to 0. */ rip->i_dirt = DIRTY; return OK; diff --git a/servers/fs/misc.c b/servers/fs/misc.c index 79ec55d16..4fd694784 100644 --- a/servers/fs/misc.c +++ b/servers/fs/misc.c @@ -258,9 +258,6 @@ PUBLIC int do_reboot() /* Only PM may make this call directly. */ if (who != PM_PROC_NR) return(EGENERIC); - /* Sync before the drivers die. */ - do_sync(); - /* Do exit processing for all leftover processes and servers. */ for (i = 0; i < NR_PROCS; i++) { m_in.slot1 = i; do_exit(); }