RockIoRequests.h
Go to the documentation of this file.
1/*
2 * Copyright (C) 1996-2022 The Squid Software Foundation and contributors
3 *
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.
7 */
8
9#ifndef SQUID_FS_ROCK_IO_REQUESTS_H
10#define SQUID_FS_ROCK_IO_REQUESTS_H
11
12#include "DiskIO/ReadRequest.h"
13#include "DiskIO/WriteRequest.h"
14#include "fs/rock/forward.h"
15#include "fs/rock/RockIoState.h"
16
17class DiskFile;
18
19namespace Rock
20{
21
23{
25
26public:
27 ReadRequest(const ::ReadRequest &, const IoState::Pointer &, const IoXactionId);
29
32};
33
35{
37
38public:
39 WriteRequest(const ::WriteRequest &, const IoState::Pointer &, const IoXactionId);
41
42 /* We own these two reserved slots until SwapDir links them into the map. */
43
46
49
52
54 bool eof;
55};
56
57} // namespace Rock
58
59#endif /* SQUID_FS_ROCK_IO_REQUESTS_H */
60
CBDATA_CLASS(ReadRequest)
ReadRequest(const ::ReadRequest &, const IoState::Pointer &, const IoXactionId)
IoXactionId id
identifies this read transaction for the requesting IoState
IoState::Pointer sio
WriteRequest(const ::WriteRequest &, const IoState::Pointer &, const IoXactionId)
CBDATA_CLASS(WriteRequest)
SlotId sidPrevious
slot that will point to sidCurrent in the cache_dir map
bool eof
whether this is the last request for the entry
SlotId sidCurrent
slot being written using this write request
IoXactionId id
identifies this write transaction for the requesting IoState
IoState::Pointer sio
Definition: forward.h:28
uint64_t IoXactionId
unique (within a given IoState object scope) I/O transaction identifier
Definition: forward.h:36
sfileno SlotId
db cell number, starting with cell 0 (always occupied by the db header)
Definition: forward.h:33

 

Introduction

Documentation

Support

Miscellaneous

Web Site Translations

Mirrors