/c: unmount pending error: blocks -68512 files 0

Kris Kennaway kris at obsecurity.org
Fri Jan 27 16:53:10 PST 2006


On Fri, Jan 27, 2006 at 07:50:18PM -0500, Chuck Swiger wrote:
> 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:

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 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
> 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/freebsd-current/attachments/20060127/8a35c01e/attachment.bin


More information about the freebsd-current mailing list