]>
git.ipfire.org Git - thirdparty/squid.git/blob - src/fs/rock/RockIoRequests.h
2 * Copyright (C) 1996-2023 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_FS_ROCK_IO_REQUESTS_H
10 #define SQUID_FS_ROCK_IO_REQUESTS_H
12 #include "DiskIO/ReadRequest.h"
13 #include "DiskIO/WriteRequest.h"
14 #include "fs/rock/forward.h"
15 #include "fs/rock/RockIoState.h"
22 class ReadRequest
: public ::ReadRequest
24 CBDATA_CLASS(ReadRequest
);
27 ReadRequest(const ::ReadRequest
&, const IoState::Pointer
&, const IoXactionId
);
30 /// identifies this read transaction for the requesting IoState
34 class WriteRequest
: public ::WriteRequest
36 CBDATA_CLASS(WriteRequest
);
39 WriteRequest(const ::WriteRequest
&, const IoState::Pointer
&, const IoXactionId
);
42 /* We own these two reserved slots until SwapDir links them into the map. */
44 /// slot that will point to sidCurrent in the cache_dir map
47 /// slot being written using this write request
50 /// identifies this write transaction for the requesting IoState
53 /// whether this is the last request for the entry
59 #endif /* SQUID_FS_ROCK_IO_REQUESTS_H */