]> git.sur5r.net Git - bacula/bacula/commitdiff
- Add extra debug to Update media error for VolFiles decrease
authorKern Sibbald <kern@sibbald.com>
Tue, 11 Oct 2005 20:40:52 +0000 (20:40 +0000)
committerKern Sibbald <kern@sibbald.com>
Tue, 11 Oct 2005 20:40:52 +0000 (20:40 +0000)
  error.
- Do not update dev->file on set_ateof() for non-tape.

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

bacula/kes-1.37
bacula/src/dird/catreq.c
bacula/src/stored/askdir.c
bacula/src/stored/dev.c
bacula/src/version.h

index 15d24479006067d6911b3dce305ecb8f94d9a07f..f3ec1cbc2b3e6964874f318c98dd30d57b0dbc32 100644 (file)
@@ -4,6 +4,10 @@
 General:
 
 Changes to 1.37.41:
+11Oct05
+- Add extra debug to Update media error for VolFiles decrease
+  error.
+- Do not update dev->file on set_ateof() for non-tape.
 10Oct05
 - Mark DVD volume in error if part cannot be written.
 - If a DVD is mounted, unmount it before asking operator
index 809d5a529a508897a4dd5c260823a3a1ffa82c16..93d1e3143bfb58ad056ce8a4138aa6858c18d4e5 100644 (file)
@@ -236,7 +236,7 @@ void catalog_request(JCR *jcr, BSOCK *bs)
                  " for Volume \"%s\". This is incorrect.\n"),
                mr.VolFiles, sdmr.VolFiles, mr.VolumeName);
             bnet_fsend(bs, _("1992 Update Media error. VolFiles=%u, CatFiles=%u\n"),
-               sdmr.VolFiles, mr.VolViles);
+               sdmr.VolFiles, mr.VolFiles);
             db_unlock(jcr->db);
             return;
          }
index c5545b62d139faec7637a7e6658feef2b71e8f32..08176ce3a9d992acc26b4b2ce011e88389e41b6e 100644 (file)
@@ -291,7 +291,7 @@ bool dir_update_volume_info(DCR *dcr, bool label)
       return false;
    }
 
-   Dmsg1(300, "Update cat VolFiles=%d\n", dev->file);
+   Dmsg1(100, "Update cat VolFiles=%d\n", dev->file);
    /* Just labeled or relabeled the tape */
    if (label) {
       bstrncpy(vol->VolCatStatus, "Append", sizeof(vol->VolCatStatus));
index 0cd3fcfa06fd86dfc9c4bc95e7a4b281ecd11076..14c3d393550bc34361dfa5542458c62de8239f76 100644 (file)
@@ -745,7 +745,9 @@ const char *DEVICE::print_blocked() const
 void DEVICE::set_ateof() 
 { 
    set_eof();
-   file++;
+   if (is_tape()) {
+      file++;
+   }
    file_addr = 0;
    file_size = 0;
    block_num = 0;
index 726541a0786b037eda9ba52cd856a3295a53d36b..ab50b34c8b6c51dd5680d97505b8df8d993eb94d 100644 (file)
@@ -4,8 +4,8 @@
 
 #undef  VERSION
 #define VERSION "1.37.41"
-#define BDATE   "10 October 2005"
-#define LSMDATE "10Oct05"
+#define BDATE   "11 October 2005"
+#define LSMDATE "11Oct05"
 
 /* Debug flags */
 #undef  DEBUG