Changes to 1.37.*:
19Oct05
+ - block.c:do_dvd_size_checks: Check we are writing to a dvd before doing tests
+ (reported by David Raine on the list, "[Bacula-users] LTO drive - End Of Volume error").
- Update bacula-sd.conf.in to use dvd-handler correctly.
- dvd.c:dvd_write_part: Increase timeout when writing the first part (see the code for
more details).
JCR *jcr = dcr->jcr;
DEV_BLOCK *block = dcr->block;
+ /* Don't go further if the device is not a dvd */
+ if (!dev->is_dvd()) {
+ return true;
+ }
+
/* Limit maximum part size to value specified by user
- * (not applicable to tapes/fifos)
*/
- if (!(dev->is_tape() || dev->is_fifo()) && dev->max_part_size > 0 &&
- (dev->part_size + block->binbuf) >= dev->max_part_size) {
+ if (dev->max_part_size > 0 && ((dev->part_size + block->binbuf) >= dev->max_part_size)) {
if (dev->part < dev->num_parts) {
Jmsg3(dcr->jcr, M_FATAL, 0, _("Error while writing, current part number"
" is less than the total number of parts (%d/%d, device=%s)\n"),