Subject: kern/22833: Can't newfs with recent -current kernel
To: None <gnats-bugs@gnats.netbsd.org>
From: None <naoki@fukaumi.org>
List: netbsd-bugs
Date: 09/18/2003 09:35:13
>Number:         22833
>Category:       kern
>Synopsis:       Can't newfs with recent -current kernel
>Confidential:   no
>Severity:       critical
>Priority:       high
>Responsible:    kern-bug-people
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Sep 17 15:46:00 UTC 2003
>Closed-Date:
>Last-Modified:
>Originator:     FUKAUMI Naoki
>Release:        NetBSD 1.6ZB (Sep 15)
>Organization:
	FUKAUMI Naoki
>Environment:
>Description:
	Recent kernel can't newfs.

	  Sep 15 kernel + Sep 15 userland -> NG
	  Sep 15 kernel + Aug 26 userland (/rescue/newfs) -> NG
	  Aug 26 kernel + Aug 26 userland -> OK

	It fails at wtfs(), line 1304 of newfs/mkfs.c.
>How-To-Repeat:
	# newfs wd0a
/dev/rwd0a: 64.5MB (132110 sectors) block size 8192, fragment size 1024
	using 4 cylinder groups of 16.13MB, 2065 blks, 3968 inodes.
wtfs: write error for sector 128: Invalid argument

	# newfs -O 2 wd0a
/dev/rwd0a: 64.5MB (132110 sectors) block size 8192, fragment size 1024
	using 4 cylinder groups of 16.13MB, 2065 blks, 3872 inodes.
wtfs: write error for sector 256: Invalid argument

	This bug can easily reproduce with vnd(4).
>Fix:
>Release-Note:
>Audit-Trail:
>Unformatted: