]> Zhao Yanbai Git Server - minix.git/commitdiff
vfs: start at vmnt[0] to sync mounted filesystems, not vmnt[1].
authorBen Gras <ben@minix3.org>
Mon, 26 Apr 2010 17:12:34 +0000 (17:12 +0000)
committerBen Gras <ben@minix3.org>
Mon, 26 Apr 2010 17:12:34 +0000 (17:12 +0000)
servers/vfs/misc.c

index 31d73f0f42934365bdedf1ba92ef58b415657378..6d3c25fab4503cc491b40ce43827fa0552ceb5e6 100644 (file)
@@ -264,7 +264,7 @@ PUBLIC int do_fcntl()
 PUBLIC int do_sync()
 {
   struct vmnt *vmp;
-  for (vmp = &vmnt[1]; vmp < &vmnt[NR_MNTS]; ++vmp) 
+  for (vmp = &vmnt[0]; vmp < &vmnt[NR_MNTS]; ++vmp) 
          if (vmp->m_dev != NO_DEV) 
                   req_sync(vmp->m_fs_e);