The AS_USER fix for the call to sd_raw_rw() in kaio_raw_rw() is
also needed:
- return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp));
+ return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp,
+ AS_USER));
I'm working on some sample code now ... if I get it done before
you post yours, I'll send it out.
--Matt
On Wed, 1 Mar 2000, Rajagopal Ananthanarayanan wrote:
|>Gabor Dolla wrote:
|>>
|>> >
|>> > Hmm. sd_raw_fops is defined by the following patch
|>> >
|>> > ftp://oss.sgi.com/www/projects/rawio/download/sgi+straw2.2.13.patch
|>> >
|>> > which is the one you should be using on a vanilla linux kernel.
|>>
|>> well, the patch place kaio_is_raw function in sd.c at line 606
|>> and sd_raw_fops struct defined at line 790...
|>> that is why I needed the pre definition....
|>
|>Ah, I see your problem. This is due the way patch works,
|>with line numbers. May be for the 2.3 patches, I'll include
|>an aio patch that will have the line numbers correct
|>after one applies the rawio patch.
|>
|>thanks for pointing it out,
|>
|>ananth.
|