]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/label.c
Make cd accept wildcards
[bacula/bacula] / bacula / src / stored / label.c
index af386241a10f7f0827335d9c33ad0c13e7624ccd..9fd0c3df83a5b5e0e2eddb2e4f6825beed11782f 100644 (file)
@@ -512,6 +512,7 @@ bool rewrite_volume_label(DCR *dcr, bool recycle)
       dev->VolCatInfo.VolCatReads = 1;
    }
    Dmsg1(150, "dir_update_vol_info. Set Append vol=%s\n", dcr->VolumeName);
+   dev->VolCatInfo.VolFirstWritten = time(NULL);
    bstrncpy(dev->VolCatInfo.VolCatStatus, "Append", sizeof(dev->VolCatInfo.VolCatStatus));
    dev->setVolCatName(dcr->VolumeName);
    if (!dir_update_volume_info(dcr, true, true)) {  /* indicate doing relabel */