Date: Fri, 27 Jan 2006 19:53:04 -0500 From: Kris Kennaway <kris@obsecurity.org> To: Chuck Swiger <cswiger@mac.com> Cc: current@FreeBSD.org, Kris Kennaway <kris@obsecurity.org> Subject: Re: /c: unmount pending error: blocks -68512 files 0 Message-ID: <20060128005304.GA70164@xor.obsecurity.org> In-Reply-To: <43DABFCA.5030509@mac.com> References: <20060128000909.GA69458@xor.obsecurity.org> <43DABFCA.5030509@mac.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--5vNYLRcllDrimb99 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Fri, Jan 27, 2006 at 07:50:18PM -0500, Chuck Swiger wrote: > Kris Kennaway wrote: > > /c: unmount pending error: blocks -68512 files 0 =20 > >=20 > > This warning has been popping up sporadically on my systems at reboot > > time since FreeBSD 5.3..what causes it? >=20 > Did you have any processes stuck in an uninterruptable condition when you > unmounted the filesystem? The message is from: Perhaps, but none that I noticed this time. I do encounter that sometimes though. Kris > > % find /usr/src/sys -name *.c -print0 | xargs -0 grep -n 'unmount pendi= ng error:' > /usr/src/sys/ufs/ffs/ffs_vfsops.c:961: >=20 > if (fs->fs_pendingblocks !=3D 0 || fs->fs_pendinginodes !=3D 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 =3D 0; > fs->fs_pendinginodes =3D 0; > } >=20 > A quick look there suggests that ffs_unmount() tries to call > softdep_flushfiles() or ffs_flushfiles(). Apparently, if those fail to f= lush > all pending data, the error message you've seen is generated. >=20 > The printf() statement should be using an unsigned int format string rath= er than > claiming a negative number of blocks is affected, or perhaps > fs->fs_pendingblocks ought to be an u_int64_t...? >=20 > --=20 > -Chuck >=20 --5vNYLRcllDrimb99 Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2 (FreeBSD) iD8DBQFD2sBwWry0BWjoQKURAkErAJ9sZQwZUdCyD5YgEJtAAHMVT30+rQCg9qr2 P94s/2khAFFWNzbTO32jc2Q= =ssZo -----END PGP SIGNATURE----- --5vNYLRcllDrimb99--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20060128005304.GA70164>