]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/stored/dvd.c
Update VolParts when writing the last part (no more free space).
[bacula/bacula] / bacula / src / stored / dvd.c
index 578cbaaaf8b664a03f22862d9ad202719638a0b9..417cf5fcec0fad34143699161341700c004b17d1 100644 (file)
@@ -488,6 +488,8 @@ int dvd_open_next_part(DCR *dcr)
     *  needed. If num_parts represents what is on the DVD
     *  we should only need to change it when writing a part
     *  to the DVD.
+    * NB. As dvd_write_part increments dev->num_parts, I also
+    *  think it is not needed.
     */
    if (dev->num_parts < dev->part) {
       Dmsg2(100, "Set npart=%d to part=%d\n", dev->num_parts, dev->part);