]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/label.c
- Fix handling of temp file in mtx_changer.in, reported as
[bacula/bacula] / bacula / src / stored / label.c
index 2ca577c680e3554aff7eac94e3093c7396e58463..993a8c53d6f514761161a4c5ed5a9af57cf50a2a 100644 (file)
@@ -353,6 +353,7 @@ bool write_new_volume_label_to_dev(DCR *dcr, const char *VolName, const char *Po
    if (debug_level >= 20)  {
       dump_volume_label(dev);
    }
+   new_volume(dcr, VolName);
    dev->clear_append();               /* remove append since this is PRE_LABEL */
    return true;