]> git.ipfire.org Git - thirdparty/squid.git/blobdiff - src/fs/rock/RockIoRequests.h
SourceFormat Enforcement
[thirdparty/squid.git] / src / fs / rock / RockIoRequests.h
index 0fd0e8b7c86f6206b22b200be088a4693d9dd9ae..e11157e0e41cec67a75a64b73c399131593f4e2e 100644 (file)
@@ -1,3 +1,11 @@
+/*
+ * Copyright (C) 1996-2015 The Squid Software Foundation and contributors
+ *
+ * Squid software is distributed under GPLv2+ license and includes
+ * contributions from numerous individuals and organizations.
+ * Please see the COPYING and CONTRIBUTORS files for details.
+ */
+
 #ifndef SQUID_FS_ROCK_IO_REQUESTS_H
 #define SQUID_FS_ROCK_IO_REQUESTS_H
 
@@ -10,30 +18,34 @@ class DiskFile;
 namespace Rock
 {
 
-/// \ingroup Rock
 class ReadRequest: public ::ReadRequest
 {
+    CBDATA_CLASS(ReadRequest);
+
 public:
     ReadRequest(const ::ReadRequest &base, const IoState::Pointer &anSio);
     IoState::Pointer sio;
-
-private:
-    CBDATA_CLASS2(ReadRequest);
 };
 
-
-/// \ingroup Rock
 class WriteRequest: public ::WriteRequest
 {
+    CBDATA_CLASS(WriteRequest);
+
 public:
     WriteRequest(const ::WriteRequest &base, const IoState::Pointer &anSio);
     IoState::Pointer sio;
 
-private:
-    CBDATA_CLASS2(WriteRequest);
-};
+    /// slot being written using this write request
+    SlotId sidCurrent;
+
+    /// allocated next slot (negative if we are writing the last slot)
+    SlotId sidNext;
 
+    /// whether this is the last request for the entry
+    bool eof;
+};
 
 } // namespace Rock
 
 #endif /* SQUID_FS_ROCK_IO_REQUESTS_H */
+