]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/block.h
For symmetry, add this file. At present, all it does is update the version table.
[bacula/bacula] / bacula / src / stored / block.h
index 2972bded93d8ebed176adffaf44ba7ec4629a963..1c3c304bb0f140aa0622aeb3d65c4e6812d52ec6 100644 (file)
@@ -96,6 +96,7 @@ struct DEV_BLOCK {
    uint32_t read_len;                 /* bytes read into buffer, if zero, block empty */
    uint32_t VolSessionId;             /* */
    uint32_t VolSessionTime;           /* */
+   uint32_t read_errors;              /* block errors (checksum, header, ...) */
    int      BlockVer;                 /* block version 1 or 2 */
    bool     write_failed;             /* set if write failed */
    bool     block_read;               /* set when block read */
@@ -105,6 +106,6 @@ struct DEV_BLOCK {
    POOLMEM *buf;                      /* actual data buffer */
 };
 
-#define block_is_empty(block) !((block)->read_len)
+#define block_is_empty(block) ((block)->read_len == 0)
 
 #endif