Date: Sat, 19 Jan 2008 09:04:54 GMT From: Peter Wemm <peter@FreeBSD.org> To: Perforce Change Reviews <perforce@freebsd.org> Subject: PERFORCE change 133645 for review Message-ID: <200801190904.m0J94s46008618@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
http://perforce.freebsd.org/chv.cgi?CH=133645 Change 133645 by peter@peter_overcee on 2008/01/19 09:04:08 Add sysctl to turn off fsync Affected files ... .. //depot/projects/hammer/sys/kern/vfs_syscalls.c#78 edit Differences ... ==== //depot/projects/hammer/sys/kern/vfs_syscalls.c#78 (text+ko) ==== @@ -3216,6 +3216,8 @@ } #endif +static int nofsync = 0; +SYSCTL_INT(_debug, OID_AUTO, nofsync, CTLFLAG_RW, &nofsync, 0, ""); /* * Sync an open file. */ @@ -3238,6 +3240,8 @@ int error; AUDIT_ARG(fd, uap->fd); + if (nofsync) + return (0); if ((error = getvnode(td->td_proc->p_fd, uap->fd, &fp)) != 0) return (error); vp = fp->f_vnode;
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200801190904.m0J94s46008618>