From owner-freebsd-current@FreeBSD.ORG Sat Jan 28 00:50:18 2006 Return-Path: X-Original-To: current@FreeBSD.org Delivered-To: freebsd-current@FreeBSD.ORG Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 45DD416A420 for ; Sat, 28 Jan 2006 00:50:18 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from pi.codefab.com (pi.codefab.com [199.103.21.227]) by mx1.FreeBSD.org (Postfix) with ESMTP id 3EA0843D58 for ; Sat, 28 Jan 2006 00:50:17 +0000 (GMT) (envelope-from cswiger@mac.com) Received: from localhost (localhost [127.0.0.1]) by pi.codefab.com (Postfix) with ESMTP id 71ED75CFC; Fri, 27 Jan 2006 19:50:16 -0500 (EST) Received: from pi.codefab.com ([127.0.0.1]) by localhost (pi.codefab.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 88811-08; Fri, 27 Jan 2006 19:50:15 -0500 (EST) Received: from [192.168.1.3] (pool-68-160-211-174.ny325.east.verizon.net [68.160.211.174]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by pi.codefab.com (Postfix) with ESMTP id 79C615C16; Fri, 27 Jan 2006 19:50:15 -0500 (EST) Message-ID: <43DABFCA.5030509@mac.com> Date: Fri, 27 Jan 2006 19:50:18 -0500 From: Chuck Swiger Organization: The Courts of Chaos User-Agent: Thunderbird 1.5 (Windows/20051201) MIME-Version: 1.0 To: Kris Kennaway References: <20060128000909.GA69458@xor.obsecurity.org> In-Reply-To: <20060128000909.GA69458@xor.obsecurity.org> X-Enigmail-Version: 0.94.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: amavisd-new at codefab.com Cc: current@FreeBSD.org Subject: Re: /c: unmount pending error: blocks -68512 files 0 X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 28 Jan 2006 00:50:18 -0000 Kris Kennaway wrote: > /c: unmount pending error: blocks -68512 files 0 > > This warning has been popping up sporadically on my systems at reboot > time since FreeBSD 5.3..what causes it? Did you have any processes stuck in an uninterruptable condition when you unmounted the filesystem? The message is from: > % find /usr/src/sys -name *.c -print0 | xargs -0 grep -n 'unmount pending error:' /usr/src/sys/ufs/ffs/ffs_vfsops.c:961: if (fs->fs_pendingblocks != 0 || fs->fs_pendinginodes != 0) { printf("%s: unmount pending error: blocks %jd files %d\n", fs->fs_fsmnt, (intmax_t)fs->fs_pendingblocks, fs->fs_pendinginodes); fs->fs_pendingblocks = 0; fs->fs_pendinginodes = 0; } A quick look there suggests that ffs_unmount() tries to call softdep_flushfiles() or ffs_flushfiles(). Apparently, if those fail to flush all pending data, the error message you've seen is generated. The printf() statement should be using an unsigned int format string rather than claiming a negative number of blocks is affected, or perhaps fs->fs_pendingblocks ought to be an u_int64_t...? -- -Chuck