git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2485
91ce42f0-d328-0410-95d8-
f526ca767f89
General:
Changes to 1.37.*:
+26Oct05
+ - dvd.c: update VolParts when writing the last part.
19Oct05
- configure: add check for dd, remove check for df
- block.c:do_dvd_size_checks: Check we are writing to a dvd before doing tests
if (dev->is_dvd()) {
dvd_write_part(dcr); /* write last part */
+ dev->VolCatInfo.VolCatParts = dev->num_parts;
}
if (!dir_update_volume_info(dcr, false)) {
* 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);