From owner-freebsd-current Fri Apr 30 17:26:18 1999 Delivered-To: freebsd-current@freebsd.org Received: from allegro.lemis.com (allegro.lemis.com [192.109.197.134]) by hub.freebsd.org (Postfix) with ESMTP id 1A3AC14F14 for ; Fri, 30 Apr 1999 17:26:08 -0700 (PDT) (envelope-from grog@freebie.lemis.com) Received: from freebie.lemis.com (freebie.lemis.com [192.109.197.137]) by allegro.lemis.com (8.9.1/8.9.0) with ESMTP id JAA22360; Sat, 1 May 1999 09:56:06 +0930 (CST) Received: (from grog@localhost) by freebie.lemis.com (8.9.3/8.9.0) id JAA90307; Sat, 1 May 1999 09:56:04 +0930 (CST) Date: Sat, 1 May 1999 09:56:04 +0930 From: Greg Lehey To: Brad Knowles Cc: FreeBSD current users Subject: Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux... Message-ID: <19990501095604.W80561@freebie.lemis.com> References: <19990430113832.005448@lists.skynet.be> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Mailer: Mutt 0.95.4i In-Reply-To: <19990430113832.005448@lists.skynet.be>; from Brad Knowles on Fri, Apr 30, 1999 at 11:38:32AM +0200 WWW-Home-Page: http://www.lemis.com/~grog X-PGP-Fingerprint: 6B 7B C3 8C 61 CD 54 AF 13 24 52 F8 6D A4 95 EF Organization: LEMIS, PO Box 460, Echunga SA 5153, Australia Phone: +61-8-8388-8286 Fax: +61-8-8388-8725 Mobile: +61-41-739-7062 Sender: owner-freebsd-current@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG On Friday, 30 April 1999 at 11:38:32 +0200, Brad Knowles wrote: > Folks, > > I don't want to get into any OS wars here, but I'd like to do some > low-level disk benchmarking of a Linux system using the same tool I used > for that under FreeBSD, namely Greg Lehey's "rawio" (see > ). > > This program was originally written to test his "vinum" software > mirroring/striping/RAID device driver for FreeBSD (see > ), but I believe that it would be > generally useful to do low-level disk testing under most any *nix OS. > > > Anyway, if there's anyone out there with any experience in porting > programs that do low-level disk I/O, I'd appreciate it if you could take > a look at this program and give me some pointers on what it would take to > get it to compile and run under Linux (specifically, Debian Linux with > kernel 2.2.6). > > Also, since I'm not subscribed to either of these mailing lists and I > can't keep up with the newsgroup gateway for them, I would appreciate it > if you would also e-mail me any responses you might have on this subject. 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. If you have any other problems, send me the compiler output and I'll guess at what it might be. 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