- int failed_write; /* set if write failed */
- char *bufp; /* pointer into buffer */
- POOLMEM *buf; /* actual data buffer. This is a
- * Pool buffer!
- */
-} DEV_BLOCK;
+ bool write_failed; /* set if write failed */
+ bool block_read; /* set when block read */
+ int32_t FirstIndex; /* first index this block */
+ int32_t LastIndex; /* last index this block */
+ char *bufp; /* pointer into buffer */
+ POOLMEM *buf; /* actual data buffer */
+};
+
+#define block_is_empty(block) ((block)->read_len == 0)