]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/testing/bug1088.patch
ebl small fix
[bacula/bacula] / bacula / patches / testing / bug1088.patch
1 Index: src/stored/mount.c
2 ===================================================================
3 --- src/stored/mount.c  (revision 6978)
4 +++ src/stored/mount.c  (working copy)
5 @@ -290,7 +290,9 @@
6        if (!is_eod_valid()) {
7           goto mount_next_vol;
8        }
9 -
10 +      if (!dev->VolCatInfo.VolFirstWritten) {
11 +        dev->VolCatInfo.VolFirstWritten = time(NULL);
12 +      }
13        dev->VolCatInfo.VolCatMounts++;      /* Update mounts */
14        Dmsg1(150, "update volinfo mounts=%d\n", dev->VolCatInfo.VolCatMounts);
15        if (!dir_update_volume_info(dcr, false, false)) {