Subject: kern/24523: lfs_mountfs: please consider increasing BUFPAGES to at least 0
To: None <gnats-bugs@gnats.NetBSD.org>
From: None <junyoung@NetBSD.org>
List: netbsd-bugs
Date: 02/22/2004 17:15:14
>Number:         24523
>Category:       kern
>Synopsis:       lfs_mountfs: please consider increasing BUFPAGES to at least 0
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Sun Feb 22 08:16:00 UTC 2004
>Closed-Date:
>Last-Modified:
>Originator:     Bang Jun-Young
>Release:        NetBSD 1.6ZK
>Organization:
>Environment:
	
	
System: NetBSD krishna.mogua.com 1.6ZK NetBSD 1.6ZK (GENERIC) #0: Sun Feb 22 16:36:12 KST 2004 junyoung@krishna.mogua.com:/u0/junyoung/src/sys/arch/i386/compile/GENERIC i386
Architecture: i386
Machine: i386
>Description:
The kernel displays a warning on system startup:

lfs_mountfs: please consider increasing BUFPAGES to at least 0

It is coming from lfs/lfs_vfsops.c (line 1275 as of r1.143):

	if (fs->lfs_ivnode->v_size > LFS_MAX_BYTES) {
		fs->lfs_flags |= LFS_WARNED;
		printf("lfs_mountfs: please consider increasing BUFPAGES to at least %lld\n",
			(long long)(fs->lfs_ivnode->v_size * bufpages / LFS_MAX_BYTES));
	}

Here bufpages is passed as 0, so that leads to a bogus message 
"... at least 0". 
	
>How-To-Repeat:
	Boot with GENERIC kernel from 2/4 through today. Prior kernels
	may have the same symptom, but I haven't tested yet.
	
>Fix:
	
>Release-Note:
>Audit-Trail:
>Unformatted: