Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 1 May 1999 09:56:04 +0930
From:      Greg Lehey <grog@lemis.com>
To:        Brad Knowles <brad@shub-internet.org>
Cc:        FreeBSD current users <FreeBSD-current@FreeBSD.ORG>
Subject:   Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...
Message-ID:  <19990501095604.W80561@freebie.lemis.com>
In-Reply-To: <19990430113832.005448@lists.skynet.be>; from Brad Knowles on Fri, Apr 30, 1999 at 11:38:32AM %2B0200
References:  <19990430113832.005448@lists.skynet.be>

next in thread | previous in thread | raw e-mail | index | archive | help
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
> <ftp://ftp.lemis.com/pub/rawio.tar.gz>).
>
>     This program was originally written to test his "vinum" software
> mirroring/striping/RAID device driver for FreeBSD (see
> <http://www.lemis.com/vinum.html>), 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




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