*
*/
/*
- Copyright (C) 2000, 2001, 2002 Kern Sibbald and John Walker
+ Copyright (C) 2000-2003 Kern Sibbald and John Walker
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License as
uint32_t block_len; /* length of current block read */
uint32_t buf_len; /* max/default block length */
uint32_t BlockNumber; /* sequential block number */
- uint32_t read_len; /* bytes read into buffer */
+ uint32_t read_len; /* bytes read into buffer, if zero, block empty */
uint32_t VolSessionId; /* */
uint32_t VolSessionTime; /* */
int BlockVer; /* block version 1 or 2 */
*/
} DEV_BLOCK;
+#define block_is_empty(block) !((block)->read_len)
+
#endif