Subject: port-sparc/7741: syboot-14.fs can create zero length partitions with non-zero offset
To: None <gnats-bugs@gnats.netbsd.org>
From: None <johnr@spimageworks.com>
List: netbsd-bugs
Date: 06/09/1999 01:06:37
>Number:         7741
>Category:       port-sparc
>Synopsis:       syboot-14.fs can create zero length partitions with non-zero offset
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    port-sparc-maintainer (NetBSD/sparc Portmaster)
>State:          open
>Class:          sw-bug
>Submitter-Id:   net
>Arrival-Date:   Wed Jun  9 01:05:02 1999
>Last-Modified:
>Originator:     John Refling
>Organization:
>Release:        1.4
>Environment:
NetBSD gail 1.4 NetBSD 1.4 (GENERIC) #0: Sun May  9 03:00:22 MEST 1999     pk@flambard:/usr/src/sys/arch/sparc/compile/GENERIC sparc


>Description:
When installing using syboot-14, if one chooses to have one large /
partition and one swap partition, we are asked for the size of 'a' and
I respond 17498880, then asked for the size of 'b' and I respond 201600.
At that point there is nothing left on the disk, but I am asked for size
of '/usr [0]' which I keep at 0.  That's the end of the questions.

The the partitions are printed out as a, b, and c, which looks OK.
The newfs command then fails and the entire install aborts.

I repeat the above, but respond that I want to change a partition,
and then the entire a,b,c,d,e,f,g,etc partitions are printed and
g looks like: size:0 offset:17700480.  The offset killed the newfs.
>How-To-Repeat:


>Fix:
Either make newfs not choke when it gets a partition of zero size
but non-zero offset (do nothing),

or

ensure that the install script sets the offset to zero of all zero
lenght partitions.

>Audit-Trail:
>Unformatted: