Date: Sat, 1 May 1999 15:25:23 +0930 From: Greg Lehey <grog@lemis.com> To: Matthew Jacob <mjacob@feral.com> Cc: Brad Knowles <brad@shub-internet.org>, FreeBSD current users <FreeBSD-current@FreeBSD.ORG> Subject: Linux char devices (was: Porting Greg Lehey's rawio.c from FreeBSD to Linux...) Message-ID: <19990501152523.H80561@freebie.lemis.com> In-Reply-To: <Pine.LNX.4.04.9904302114210.9878-100000@feral.com>; from Matt Jacob on Fri, Apr 30, 1999 at 09:25:12PM -0700 References: <19990501134333.G80561@freebie.lemis.com> <Pine.LNX.4.04.9904302114210.9878-100000@feral.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Friday, 30 April 1999 at 21:25:12 -0700, Matt Jacob wrote: > >> On Friday, 30 April 1999 at 20:51:06 -0700, Matt Jacob wrote: >>>> >>>> I don't really understand why you ask a FreeBSD group about it; it's a >>>> Linux issue. FWIW, about the only area where you're liable to run >>>> into difficulties is in the disk label handling round line 300, which >>>> is pretty peripheral to the function: it's just there as one way of >>>> finding out the size of the partition. You'll need in-depth Linux >>>> information to even find out if Linux has an equivalent function. >>> >>> Open the device, and >>> >>> if (ioctl(fd, BLKGETSIZE, (caddr_t) &seeklim) < 0) { >>> >>> see <linux/fs.h> >> >> Thanks for the info. Looking at this, it looks as if this ioctl is >> for a block device. rawio uses character devices. Does that make a >> difference? > > <snip> > > There are no raw devices in Linux. Linus is totally against them as > stupid. Linus has some good points about this, but it's still an, um, > interesting stance. It also makes it impossible for rawio to run accurately. rawio measures device throughput, not system throughput. Cache the data and you completely lose this ability (hey! Under Vinum, an array of four floppies has a random read throughput of 50 MB/s!). Greg -- See complete headers for address, home page and phone numbers finger grog@lemis.com for PGP public key 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?19990501152523.H80561>