]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/block.c
Update VolParts when writing the last part (no more free space).
[bacula/bacula] / bacula / src / stored / block.c
index 87c67abe84b8844b48eb618b88424c8a6515e3b1..5f3f2feb0442342f7ef6136d956b013efe2bd4bd 100644 (file)
@@ -696,6 +696,7 @@ static bool terminate_writing_volume(DCR *dcr)
    
    if (dev->is_dvd()) {
       dvd_write_part(dcr);                 /* write last part */
+      dev->VolCatInfo.VolCatParts = dev->num_parts;
    }
    
    if (!dir_update_volume_info(dcr, false)) {