Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 30 Apr 1999 20:51:06 -0700 (PWT)
From:      Matthew Jacob <mjacob@feral.com>
To:        Greg Lehey <grog@lemis.com>
Cc:        Brad Knowles <brad@shub-internet.org>, FreeBSD current users <FreeBSD-current@FreeBSD.ORG>
Subject:   Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...
Message-ID:  <Pine.LNX.4.04.9904302049430.9878-100000@feral.com>
In-Reply-To: <19990501095604.W80561@freebie.lemis.com>

next in thread | previous in thread | raw e-mail | index | archive | help
> 
> 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>





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?Pine.LNX.4.04.9904302049430.9878-100000>