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 [EMAIL PROTECTED] with "unsubscribe freebsd-current" in the body of the message