Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-03 Thread John Birrell
Brad Knowles wrote: > On Sat, May 1, 1999, Greg Lehey wrote: > > >I don't really understand why you ask a FreeBSD group about it; it's a > >Linux issue. > > BTW, I asked here in addition to many other places, including the > linux-kernel mailing list, comp.os.linux.misc, and at least one per

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-03 Thread Brad Knowles
On Sat, May 1, 1999, Greg Lehey wrote: >I don't really understand why you ask a FreeBSD group about it; it's a >Linux issue. BTW, I asked here in addition to many other places, including the linux-kernel mailing list, comp.os.linux.misc, and at least one person who's got some other Linux ben

Re: Linux char devices (was: Porting Greg Lehey's rawio.c from FreeBSD to Linux...)

1999-05-01 Thread Brad Knowles
On Sat, May 1, 1999, Greg Lehey wrote: >On Friday, 30 April 1999 at 21:25:12 -0700, Matt Jacob wrote: >> 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 impossi

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-01 Thread Bruce Evans
>> >Linux' fsync() works only on directories, not on files. >> >>Huh? That doesn't make any sense. The "f" in fsync() stands for "file". > >It does write the file to the disk but not the inode. To get the inode >on the disk you have to fsync() the directory (which sync'ed the whole >FS before

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-01 Thread Andre Oppermann
David Greenman wrote: > > >Matthew Jacob wrote: > >> For raw pattern testing Linux has a special challenge since you right > >> directly into the buffer cache. There *is* a BLKFLSBUF ioctl that can try > >> and force a flush but this probably ought to be written to use O_FSYNC- I > >> think that t

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-01 Thread David Greenman
>Matthew Jacob wrote: >> For raw pattern testing Linux has a special challenge since you right >> directly into the buffer cache. There *is* a BLKFLSBUF ioctl that can try >> and force a flush but this probably ought to be written to use O_FSYNC- I >> think that the ll_rw code might use it or an fs

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-05-01 Thread Andre Oppermann
Matthew Jacob wrote: > For raw pattern testing Linux has a special challenge since you right > directly into the buffer cache. There *is* a BLKFLSBUF ioctl that can try > and force a flush but this probably ought to be written to use O_FSYNC- I > think that the ll_rw code might use it or an fsync c

Linux char devices (was: Porting Greg Lehey's rawio.c from FreeBSD to Linux...)

1999-04-30 Thread Greg Lehey
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 difficu

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Julian Elischer
Linux had no char device last I looked.. everything is always buffered this may have changed, but On Sat, 1 May 1999, Greg Lehey 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 > >> Lin

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Matthew Jacob
> 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 > >> i

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Greg Lehey
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 peri

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Matthew Jacob
> > 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 ou

Re: Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Greg Lehey
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 >

Porting Greg Lehey's rawio.c from FreeBSD to Linux...

1999-04-30 Thread Brad Knowles
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