]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/DiskIO/AIO/AIODiskIOStrategy.h
2d94d9bb3920ddb529e91209c10c51950ac7e6e6
2 * Copyright (C) 1996-2018 The Squid Software Foundation and contributors
4 * Squid software is distributed under GPLv2+ license and includes
5 * contributions from numerous individuals and organizations.
6 * Please see the COPYING and CONTRIBUTORS files for details.
9 #ifndef SQUID_SRC_DISKIO_AIO_AIODISKIOSTRATEGY_H
10 #define SQUID_SRC_DISKIO_AIO_AIODISKIOSTRATEGY_H
12 #if HAVE_DISKIO_MODULE_AIO
14 #include "DiskIO/AIO/async_io.h"
15 #include "DiskIO/DiskIOStrategy.h"
17 class AIODiskIOStrategy
: public DiskIOStrategy
22 virtual ~AIODiskIOStrategy();
24 virtual bool shedLoad();
25 /* What is the current load? 999 = 99.9% */
27 /* Return a handle for performing IO operations */
28 virtual RefCount
<DiskFile
> newFile (char const *path
);
29 /* flush all IO operations */
31 /** whether the IO Strategy can use unlinkd */
32 virtual bool unlinkdUseful() const;
33 /* unlink a file by path */
34 virtual void unlinkFile (char const *);
36 /* perform any pending callbacks */
37 virtual int callback();
39 /* Init per-instance logic */
42 /* cachemgr output on the IO instance stats */
43 virtual void statfs(StoreEntry
& sentry
)const;
44 /* module specific options */
45 virtual ConfigOption
*getOptionTree() const;
46 /* a file descriptor */
48 /* queue of requests */
54 #endif /* HAVE_DISKIO_MODULE_AIO */
55 #endif /* SQUID_SRC_DISKIO_AIO_AIODISKIOSTRATEGY_H */