kaio
[Top] [All Lists]

Re: kaio patch on linux 2.2.14 kernel

To: Gabor Dolla <agdolla@xxxxxxxxx>
Subject: Re: kaio patch on linux 2.2.14 kernel
From: Rajagopal Ananthanarayanan <ananth@xxxxxxx>
Date: Tue, 29 Feb 2000 18:17:45 -0800
Cc: kaio@xxxxxxxxxxx
References: <Pine.BSF.4.10.10002291109520.56057-100000@szorvor.mezon.net>
Sender: owner-kaio@xxxxxxxxxxx
Gabor Dolla wrote:
> 
> Hi
> 
> your patch didn't compile for me ...
> 
> #if defined(CONFIG_RAW) && defined(CONFIG_AIO)
> /*
>  * XXX Interfaces for AIO; ideally done through fops.
>  */
> int
> kaio_is_raw(struct file *filp)
> {
>       return(filp->f_op == &sd_raw_fops);
> }
>                             ^^^^^^^^^^^^^^
> it didn't find this global variable
> so I made a pre declaration prior to this function:
> 
> struct file_operations sd_raw_fops ;

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.

> 
> the second problem was:
> 
> void *
> kaio_raw_rw(int rw, struct file *filp, char *buf, size_t count, loff_t
> *ppos,
>         int *error, struct semaphore *semp, struct kiobuf *iobufp)
> {
>       return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp));
> }
> 
> the compiler said that sd_raw_rw needs 9 parameters
> 
> so I changed it to:
> return(sd_raw_rw(rw, filp, buf, count, ppos, error, semp, iobufp,
> AS_USER));
> 
> was it only my problem ?? did I make the right modofication??
> 

Yes this is the correct fix. Apparently the rawio patches
have been upgraded since made the kaio patches.

hope this helps,

ananth.

<Prev in Thread] Current Thread [Next in Thread>