]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/label.c
kes Apply patch supplied in bug #656 to pass priority field
[bacula/bacula] / bacula / src / stored / label.c
index 0e18e92ea4557261b6dc14cb1b21c908ee85eecf..59a2380e8947b999238ea8c610ec4ab7f833db37 100644 (file)
@@ -560,7 +560,7 @@ void create_volume_label(DEVICE *dev, const char *VolName,
 
    bstrncpy(dev->VolHdr.Id, BaculaId, sizeof(dev->VolHdr.Id));
    dev->VolHdr.VerNum = BaculaTapeVersion;
-   if (dvdnow) {
+   if (dev->is_dvd() && dvdnow) {
       /* We do not want to re-label a DVD so write VOL_LABEL now */
       dev->VolHdr.LabelType = VOL_LABEL;
    } else {