X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;f=lib%2Ffastbuf.h;h=b5aa567ebb72dc0213c5fb67f3b041c2fa2dc12f;hb=e34560a76a7af3fb428604e4da3cd14cfd1bf454;hp=598a21d942f0c0997c31e0f0e2fb1d9f70d4492c;hpb=d6d4eda80ef12f9e9f71921d0d4acee2faf0ccb0;p=libucw.git diff --git a/lib/fastbuf.h b/lib/fastbuf.h index 598a21d9..b5aa567e 100644 --- a/lib/fastbuf.h +++ b/lib/fastbuf.h @@ -100,6 +100,14 @@ struct fastbuf *fbmem_clone_read(struct fastbuf *); /* Create reading fastbuf */ struct fastbuf *bopen_mm(byte *name, uns mode); +/* FastIO on files opened with O_DIRECT (see fb-direct.c for description) */ + +struct asio_queue; +struct fastbuf *fbdir_open(byte *name, uns mode, struct asio_queue *io_queue); +struct fastbuf *fbdir_open_try(byte *name, uns mode, struct asio_queue *io_queue); +struct fastbuf *fbdir_open_fd(int fd, struct asio_queue *io_queue); +struct fastbuf *fbdir_open_tmp(struct asio_queue *io_queue); + /* FastI on file descriptors with limit */ struct fastbuf *bopen_limited_fd(int fd, uns bufsize, uns limit);