Tim Oberfoell
Tomas Cameron
Tullio Andreatta
+Ulrich Leodolter
Wolfgang Denk
Yves Orton
db_escape_string(jcr, jcr->db, buf, Opts_Digest, strlen(Opts_Digest));
if (strcmp(buf, fdbr.Digest) != 0) {
prt_fname(jcr);
- if (debug_level >= 10) {
- Jmsg(jcr, M_INFO, 0, _(" %s not same. File=%s Cat=%s\n"),
- stream_to_ascii(stream), buf, fdbr.Digest);
- } else {
- Jmsg(jcr, M_INFO, 0, _(" %s differs.\n"),
- stream_to_ascii(stream));
- }
+ Jmsg(jcr, M_INFO, 0, _(" %s differs. File=%s Cat=%s\n"),
+ stream_to_ascii(stream), buf, fdbr.Digest);
stat = JS_Differences;
}
do_Digest = CRYPTO_DIGEST_NONE;
/* Check for sparse blocks */
if (ff_pkt->flags & FO_SPARSE) {
ser_declare;
- bool haveBlock = true;
+ bool allZeros = false;
if (sd->msglen == rsize &&
fileAddr+sd->msglen < (uint64_t)ff_pkt->statp.st_size ||
((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
(uint64_t)ff_pkt->statp.st_size == 0)) {
- haveBlock = !is_buf_zero(rbuf, rsize);
+ allZeros = is_buf_zero(rbuf, rsize);
}
- if (haveBlock) {
+ if (!allZeros) {
+ /* Put file address as first data in buffer */
ser_begin(wbuf, SPARSE_FADDR_SIZE);
ser_uint64(fileAddr); /* store fileAddr in begin of buffer */
}
fileAddr += sd->msglen; /* update file address */
- if (!haveBlock) {
+ /* Skip block of all zeros */
+ if (allZeros) {
continue; /* skip block of zeros */
}
}
while ((n=bread(bfd, buf, bufsiz)) > 0) {
/* Check for sparse blocks */
if (ff_pkt->flags & FO_SPARSE) {
- bool haveBlock = true;
+ bool allZeros = false;
if (n == bufsiz &&
fileAddr+n < (uint64_t)ff_pkt->statp.st_size ||
((ff_pkt->type == FT_RAW || ff_pkt->type == FT_FIFO) &&
(uint64_t)ff_pkt->statp.st_size == 0)) {
- haveBlock = !is_buf_zero(buf, bufsiz);
+ allZeros = is_buf_zero(buf, bufsiz);
}
fileAddr += n; /* update file address */
- if (!haveBlock) {
+ /* Skip any block of all zeros */
+ if (allZeros) {
continue; /* skip block of zeros */
}
}
#undef VERSION
#define VERSION "2.5.3"
-#define BDATE "08 September 2008"
-#define LSMDATE "8Sep08"
+#define BDATE "10 September 2008"
+#define LSMDATE "10Sep08"
#define PROG_COPYRIGHT "Copyright (C) %d-2008 Free Software Foundation Europe e.V.\n"
#define BYEAR "2008" /* year for copyright messages in progs */
remove reader/writer in FOPTS????
General:
+10Sep08
+kes Always print Verify hash differences. Rename variable to make the
+ code slightly more readable.
09Sep08
kes Correct tests for MaxFullInterval as reported by
- Ulrich Leodolter.
+ Ulrich Leodolter <ulrich.leodolter@obvsg.at>..
kes Fix MaxDiffInterval code as well.
kes Enable Win32 plugin load code in lib.
kes Make Verify code that computes disk checksums use the same