If you are writing a new API, please do not prefix the names with aio_.
This prefix is used by POSIX Async-IO, and there may well be disk-I/O
implementations wanting to use POSIX Async-IO...
--
Henrik
Adrian Chadd wrote:
>
> Update of /cvsroot/squid/squid/src
> In directory usw-pr-cvs1:/tmp/cvs-serv4705
>
> Modified Files:
> Tag: diskio
> disk.c
> Log Message:
>
> Add the public API functions for the async disk io.
>
> I haven't added cancellation or per-operation stuff into this
> API - it can easily be tacked on later, and the FSes as they
> stand right now shouldn't need it.
>
> Note: she still does nothing. I need to add a diskio module system
> similar to what is happening for the filesystem types..
>
> Index: disk.c
> ===================================================================
> RCS file: /cvsroot/squid/squid/src/disk.c,v
> retrieving revision 1.5.16.2
> retrieving revision 1.5.16.3
> diff -w -u -r1.5.16.2 -r1.5.16.3
> --- disk.c 2001/05/29 14:38:01 1.5.16.2
> +++ disk.c 2001/05/29 14:51:10 1.5.16.3
> @@ -413,5 +413,40 @@
> */
>
> /*
> - * async_disk_create_queue - create an async disk queue of the given type
> + * aio_disk_create_queue - create an async disk queue of the given type
> + */
> +aio_queue_t *
> +aio_disk_create_queue(const char *type)
> +{
> + /* Search our list of IO modules to find a match */
> +
> + /* Match, return it! */
> +
> + /* No match, fatal */
> + fatalf("ERROR: Unknown disk IO type '%s'\n", type);
> + return NULL;
> +}
> +
> +/*
> + * aio_disk_open - open a file
> + */
> +
> +/*
> + * aio_disk_create - close a file
> + */
> +
> +/*
> + * aio_disk_unlink - unlink a file
> + */
> +
> +/*
> + * aio_disk_stat - stat a file
> + */
> +
> +/*
> + * aio_file_read - read from an open file
> + */
> +
> +/*
> + * aio_file_write - write to an open file
> */
>
> _______________________________________________
> Squid-cvs mailing list
> http://squid.sourceforge.net/projects.html
Received on Wed May 30 2001 - 01:30:54 MDT
This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:14:02 MST