Re: Retrieving disk geometry

2003-06-03 Thread Andrew
On Mon, 2 Jun 2003, Terry Lambert wrote: > All the geometries returned by this call are fictitous these days, > so there's really no value to it. I'm just trying to port some software that used to work under 4.x so I was trying to do as few changes as possible. I have to admit I haven't really

Re: Retrieving disk geometry

2003-06-03 Thread Terry Lambert
Andrew wrote: > Under FreeBSD 4.x the ioctl DIOCGDINFO could be used to retrieve the > number of cylinders, heads and sectors of a drive. This could be called on > /dev/ad0 for example. Under FreeBSD 5 it seems to produce "Inappropriate > ioctl for device" unless you call it on an individual partit

Re: Retrieving disk geometry

2003-06-03 Thread Marcin Dalecki
Andrew wrote: Hi, Under FreeBSD 4.x the ioctl DIOCGDINFO could be used to retrieve the number of cylinders, heads and sectors of a drive. This could be called on /dev/ad0 for example. Under FreeBSD 5 it seems to produce "Inappropriate ioctl for device" unless you call it on an individual partition

Re: Retrieving disk geometry

2003-06-03 Thread Poul-Henning Kamp
In message <[EMAIL PROTECTED]>, Andrew writes: >Hi, > >Under FreeBSD 4.x the ioctl DIOCGDINFO could be used to retrieve the >number of cylinders, heads and sectors of a drive. This could be called on >/dev/ad0 for example. Under FreeBSD 5 it seems to produce "Inappropriate >ioctl for device" unless

Retrieving disk geometry

2003-06-03 Thread Andrew
Hi, Under FreeBSD 4.x the ioctl DIOCGDINFO could be used to retrieve the number of cylinders, heads and sectors of a drive. This could be called on /dev/ad0 for example. Under FreeBSD 5 it seems to produce "Inappropriate ioctl for device" unless you call it on an individual partition (/dev/ad0s1a