Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 22 Jul 2011 18:03:33 +0000 (UTC)
From:      Kirk McKusick <mckusick@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r224272 - head/sys/ufs/ffs
Message-ID:  <201107221803.p6MI3X1j027035@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: mckusick
Date: Fri Jul 22 18:03:33 2011
New Revision: 224272
URL: http://svn.freebsd.org/changeset/base/224272

Log:
  Default debugging error messages to off for journaled soft updates sysctls.
  Delete limiting on output of these sysctls.
  
  Approved by: re (kib)

Modified:
  head/sys/ufs/ffs/ffs_alloc.c

Modified: head/sys/ufs/ffs/ffs_alloc.c
==============================================================================
--- head/sys/ufs/ffs/ffs_alloc.c	Fri Jul 22 16:42:12 2011	(r224271)
+++ head/sys/ufs/ffs/ffs_alloc.c	Fri Jul 22 18:03:33 2011	(r224272)
@@ -2447,7 +2447,7 @@ static SYSCTL_NODE(_vfs_ffs, FFS_SET_BUF
 
 #define DEBUG 1
 #ifdef DEBUG
-static int fsckcmds = 1;
+static int fsckcmds = 0;
 SYSCTL_INT(_debug, OID_AUTO, fsckcmds, CTLFLAG_RW, &fsckcmds, 0, "");
 #endif /* DEBUG */
 
@@ -2470,7 +2470,6 @@ sysctl_ffs_fsck(SYSCTL_HANDLER_ARGS)
 	struct file *fp, *vfp;
 	int vfslocked, filetype, error;
 	static struct fileops *origops, bufferedops;
-	static int outcnt = 0;
 
 	if (req->newlen > sizeof cmd)
 		return (EBADRPC);
@@ -2755,7 +2754,7 @@ sysctl_ffs_fsck(SYSCTL_HANDLER_ARGS)
 			break;
 		}
 #ifdef DEBUG
-		if (fsckcmds && outcnt++ < 100) {
+		if (fsckcmds) {
 			printf("%s: update inode %jd\n",
 			    mp->mnt_stat.f_mntonname, (intmax_t)cmd.value);
 		}
@@ -2857,7 +2856,6 @@ buffered_write(fp, uio, active_cred, fla
 	struct fs *fs;
 	int error, vfslocked;
 	daddr_t lbn;
-	static int outcnt = 0;
 
 	/*
 	 * The devvp is associated with the /dev filesystem. To discover
@@ -2875,7 +2873,7 @@ buffered_write(fp, uio, active_cred, fla
 	if ((flags & FOF_OFFSET) == 0)
 		uio->uio_offset = fp->f_offset;
 #ifdef DEBUG
-	if (fsckcmds && outcnt++ < 100) {
+	if (fsckcmds) {
 		printf("%s: buffered write for block %jd\n",
 		    fs->fs_fsmnt, (intmax_t)btodb(uio->uio_offset));
 	}



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201107221803.p6MI3X1j027035>