]> git.sur5r.net Git - bacula/bacula/commitdiff
kes Add make clean of qt-source directory during ./configure
authorKern Sibbald <kern@sibbald.com>
Sun, 8 Jun 2008 10:13:01 +0000 (10:13 +0000)
committerKern Sibbald <kern@sibbald.com>
Sun, 8 Jun 2008 10:13:01 +0000 (10:13 +0000)
kes  Store last block number written to tape in DEVICE and
     use it for testing for correct last block on EOT.

git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7116 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/autoconf/configure.in
bacula/configure
bacula/src/stored/block.c
bacula/src/stored/dev.h
bacula/src/version.h
bacula/technotes-2.5

index 5cc212f30f1446199ff40177a884098367f486d4..d0461b65ecd1120c985963563f7c8a46c280a261 100644 (file)
@@ -2342,6 +2342,7 @@ if test "${support_bat}" = "yes" ; then
   chmod 755 install_conf_file build-depkgs-qt-console
   echo "Creating bat Makefile"
   $QMAKEBIN
+  make clean
   cd ${BUILD_DIR}
 fi
 
index 42440e2bfb6ecefb452aeebac756d74060ae7db6..55745e5e8140da8be2e91c829148aa69cf1c4f20 100755 (executable)
@@ -32121,6 +32121,7 @@ if test "${support_bat}" = "yes" ; then
   chmod 755 install_conf_file build-depkgs-qt-console
   echo "Creating bat Makefile"
   $QMAKEBIN
+  make clean
   cd ${BUILD_DIR}
 fi
 
index 5efc332669f878680dc1585a0a2cc6f80ec77757..7ac0491eab15fbdab24b85577068b0cabd60bb96 100644 (file)
@@ -599,6 +599,7 @@ bool write_block_to_dev(DCR *dcr)
    dev->VolCatInfo.VolCatBlocks++;
    dev->EndBlock = dev->block_num;
    dev->EndFile  = dev->file;
+   dev->LastBlock = block->BlockNumber;
    block->BlockNumber++;
 
    /* Update dcr values */
@@ -688,11 +689,15 @@ static void reread_last_block(DCR *dcr)
              * If we wrote block and the block numbers don't agree
              *  we have a possible problem.
              */
+#ifdef xxx
             if (lblock->VolSessionId == block->VolSessionId &&
+                lblock->VolSessionTime == block->VolSessionTime &&
                 lblock->BlockNumber+1 != block->BlockNumber) {
+#endif
+            if (lblock->BlockNumber != dev->LastBlock) {
                Jmsg(jcr, M_ERROR, 0, _(
-"Re-read of last block OK, but block numbers differ. Last block=%u Current block=%u.\n"),
-                    lblock->BlockNumber, block->BlockNumber);
+"Re-read of last block OK, but block numbers differ. Read block=%u Want block=%u.\n"),
+                    lblock->BlockNumber, dev->LastBlock);
             } else {
                Jmsg(jcr, M_INFO, 0, _("Re-read of last block succeeded.\n"));
             }
index fbfa735b687ba7294f50a8dbe0a1fc76fe719600..265680f5b77fc151baeffc78af3314751feea377 100644 (file)
@@ -241,6 +241,7 @@ public:
    POOLMEM *prt_name;                 /* Name used for display purposes */
    char *errmsg;                      /* nicely edited error message */
    uint32_t block_num;                /* current block number base 0 */
+   uint32_t LastBlock;                /* last DEV_BLOCK number written to Volume */
    uint32_t file;                     /* current file number base 0 */
    uint64_t file_addr;                /* Current file read/write address */
    uint64_t file_size;                /* Current file size */
index 3530506c881cd4a3b50cbdc40da6c88fdaed83d3..cba9b27869b9684a8c1793bc8819b27c3c26d0e3 100644 (file)
@@ -62,7 +62,7 @@
  *  run regress test.
  */
 #ifdef DEVELOPER
-#define USE_FAKETAPE
+//#define USE_FAKETAPE
 #endif
 
 /* 
index ef6b90bde795950a84e8eb571b50346b0ac6d6ad..1e027dce094586b29bdb9ed33866df64459de5ed 100644 (file)
@@ -26,6 +26,9 @@ Add long term statistics job table
 General:
 08Jun08
 ebl  Modify faketape driver to avoid sparse file.
+kes  Add make clean of qt-source directory during ./configure
+kes  Store last block number written to tape in DEVICE and
+     use it for testing for correct last block on EOT.
 
 Release Version 2.4.0:
 04Jun08