Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 01 Oct 2001 16:13:15 +0100
From:      setantae <setantae@submonkey.net>
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   bin/30959: newfs -i x dumps core for small values of x
Message-ID:  <E15o4kt-0007hD-00@rhadamanth.private.submonkey.net>

next in thread | raw e-mail | index | archive | help

>Number:         30959
>Category:       bin
>Synopsis:       newfs -i x dumps core for small values of x
>Confidential:   no
>Severity:       serious
>Priority:       low
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Oct 01 08:20:02 PDT 2001
>Closed-Date:
>Last-Modified:
>Originator:     setantae
>Release:        FreeBSD 4.4-STABLE i386
>Organization:
>Environment:
System: FreeBSD rhadamanth.private.submonkey.net 4.4-STABLE FreeBSD 4.4-STABLE #0: Mon Sep 24 15:48:56 BST 2001 setantae@rhadamanth.private.submonkey.net:/usr/obj/usr/src/sys/RHADAMANTH i386

	
>Description:
	Calling newfs with the -i option where the value passed is < 256
	causes newfs to dump core, or otherwise misbehave.

>How-To-Repeat:

< 128 :
	root@rhadamanth setantae# newfs -b 8192 -f 1024 -i64 /dev/ad2s2e
	Floating point exception (core dumped)
	root@rhadamanth setantae#

(this core dump is available if you want it)

< 256 :

	root@rhadamanth setantae# newfs -b 8192 -f 1024 -i128 /dev/ad2s2e
	/dev/ad2s2e:    65536 sectors in 16 cylinders of 1 tracks, 4096 sectors
	        32.0MB in 1 cyl groups (16 c/g, 32.00MB/g, 0 i/g)
	super-block backups (for fsck -b #) at:
	 32
	fsinit: inode value out of range (2).
	root@rhadamanth setantae#

>Fix:

	Create less inodes than you want by using values >= 256.

>Release-Note:
>Audit-Trail:
>Unformatted:
 >= 256 :
 
 	root@rhadamanth setantae# newfs -b 8192 -f 1024 -i256 /dev/ad2s2e
 	Warning: Bytes per inode restrict cylinders per group to 4.
 	/dev/ad2s2e:    65536 sectors in 16 cylinders of 1 tracks, 4096 sectors
 	        32.0MB in 4 cyl groups (4 c/g, 8.00MB/g, 21760 i/g)
 	super-block backups (for fsck -b #) at:
 	 32, 16416, 32800, 49184
 	root@rhadamanth setantae#
 
 

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?E15o4kt-0007hD-00>