Subject: kern/24524: 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:36:45
>Number:         24524
>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:37: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 GENERIC kernel displays a warning when it tries to mount a lfs volume
(usually on system startup):

lfs_mountfs: please consider increasing BUFPAGES to at least 0

It is coming from lfs/lfs_fsops.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 0, so that leads to a bogus message "... at least 0".

Disklabel configuration on my system is as follows:

#        size    offset     fstype [fsize bsize cpg/sgs]
 a:  26371296        63     4.2BSD   1024  8192 46600  # (Cyl.      0*-  26162*) <- ffS
 b:    263088  26371359       swap                     # (Cyl.  26162*-  26423*)
 c:  51211377        63     unused      0     0        # (Cyl.      0*-  50804)
 d: 156301488         0     unused      0     0        # (Cyl.      0 - 155060)
 e:  24576993  26634447     4.2BSD   1024  8192 46552  # (Cyl.  26423*-  50804) <- lfs
 f:  37784880  51211440      MSDOS                     # (Cyl.  50805 -  88289)
 g:  33398127 122897313       NTFS                     # (Cyl. 121921*- 155054)

	
>How-To-Repeat:
Boot with GENERIC kernels from 2/4 through today. Prior kernels may have
the same symptom, but I haven't tested yet.
	
>Fix:
	

>Release-Note:
>Audit-Trail:
>Unformatted: