git: DragonFly_RELEASE_3_2 kernel - Fix sync() system call

Matthew Dillon dillon at crater.dragonflybsd.org
Thu Dec 13 19:17:35 PST 2012


commit a2785819453b7ea4386432aded4281c91f2ed193
Author: Matthew Dillon <dillon at apollo.backplane.com>
Date:   Wed Dec 12 23:19:43 2012 -0800

    kernel - Fix sync() system call
    
    * The sync() system call was syncing the filesystems MNT_NOWAIT | MNT_LAZY.
      We need the MNT_NOWAIT to avoid an endless sync on a busy filesystem, but
      MNT_LAZY is another issue entirely.
    
    * Remove the MNT_LAZY from the sync() system call, it can cause whole
      files to not be synced.  It is meant only to be used by the automatic
      kernel 30-second sync (which eventually gets everything flushed out).

Summary of changes:
 sys/kern/vfs_syscalls.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

http://gitweb.dragonflybsd.org/dragonfly.git/commitdiff/a2785819453b7ea4386432aded4281c91f2ed193


-- 
DragonFly BSD source repository



More information about the Commits mailing list