Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jan 2003 19:03:02 +1100 (EST)
From:      Bruce Evans <bde@zeta.org.au>
To:        Nate Lawson <nate@root.org>
Cc:        Sean Kelly <smkelly@zombie.org>, <current@FreeBSD.ORG>
Subject:   Re: fdisk issues?
Message-ID:  <20030113185731.V11356-100000@gamplex.bde.org>
In-Reply-To: <20030113181713.O11356-100000@gamplex.bde.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, 13 Jan 2003, Bruce Evans wrote:

> On Sun, 12 Jan 2003, Nate Lawson wrote:
>
> > On Sun, 12 Jan 2003, Sean Kelly wrote:
> > > edgemaster# fdisk ad1
> > > Floating exception (core dumped)
> ...
> > The more important question
> > is "who in the kernel is setting these to 0?" as that part needs work too.
>
> Well, fdisk itself sets these to 0.  The ioctls to get the number of
> heads and sectors may fail because they are unimplemented, and then
> the sloppy error handling in the code quoted above bites.  It divides
> if the DIOCGMEDIASIZE ioctl succeeded, but a divisor is 0 if the earlier
> head or sector ioctl failed.  The head and/or sector counts are only
> statically initialized to 0 in this case, since the fallback which set
> them to 1 was axed.

This explains Sean's case.  He was not using GEOM (see his original mail).

Bruce


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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030113185731.V11356-100000>