]> git.sur5r.net Git - bacula/bacula/commitdiff
ebl Try to fix #1088 (have to be tested)
authorEric Bollengier <eric@eb.homelinux.org>
Fri, 16 May 2008 13:42:14 +0000 (13:42 +0000)
committerEric Bollengier <eric@eb.homelinux.org>
Fri, 16 May 2008 13:42:14 +0000 (13:42 +0000)
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@6979 91ce42f0-d328-0410-95d8-f526ca767f89

bacula/patches/testing/bug1088.patch [new file with mode: 0644]

diff --git a/bacula/patches/testing/bug1088.patch b/bacula/patches/testing/bug1088.patch
new file mode 100644 (file)
index 0000000..37a6365
--- /dev/null
@@ -0,0 +1,15 @@
+Index: src/stored/mount.c
+===================================================================
+--- src/stored/mount.c (revision 6978)
++++ src/stored/mount.c (working copy)
+@@ -290,7 +290,9 @@
+       if (!is_eod_valid()) {
+          goto mount_next_vol;
+       }
+-
++      if (!dev->VolCatInfo.VolFirstWritten) {
++       dev->VolCatInfo.VolFirstWritten = time(NULL);
++      }
+       dev->VolCatInfo.VolCatMounts++;      /* Update mounts */
+       Dmsg1(150, "update volinfo mounts=%d\n", dev->VolCatInfo.VolCatMounts);
+       if (!dir_update_volume_info(dcr, false, false)) {