[OpenAFS] Re: openafs and linux 2.6.19-rc1 [patch]

Alex Romosan romosan@sycorax.lbl.gov
Fri, 06 Oct 2006 09:15:48 -0700


"chas williams - CONTRACTOR" <chas@cmf.nrl.navy.mil> writes:

>  
> @@ -550,6 +558,10 @@
>    .read =	generic_read_dir,
>  #endif
>    .readdir =	afs_linux_readdir,
> +#ifdef GENERIC_FILE_AIO_READ
> +  .aio_read =	generic_file_aio_read,
> +  .aio_write =	generic_file_aio_write,
> +#endif
>  #ifdef HAVE_UNLOCKED_IOCTL
>    .unlocked_ioctl = afs_unlocked_xioctl,
>  #else

i think this chunk (in src/afs/LINUX/osi_vnodeops.c) ended in the
wrong place. the .aio_read/write were added to afs_dir_fops but they
should have been added to afs_file_fops instead (the next structure
below). at least that's what i had in my working version.

--alex--

-- 
| I believe the moment is at hand when, by a paranoiac and active |
|  advance of the mind, it will be possible (simultaneously with  |
|  automatism and other passive states) to systematize confusion  |
|  and thus to help to discredit completely the world of reality. |