X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fdvd.c;h=21f1d992bb6e63455e8cdaf27c9ac7fab9c32ce0;hb=c9bfd126f0000a917069cb39916e0323c31ef4b2;hp=15692518a0004adc5cb7f0011d8d2b0a7ce7fa02;hpb=469faac3fcb81d7e29f9766d010edfdceb428aa6;p=bacula%2Fbacula diff --git a/bacula/src/stored/dvd.c b/bacula/src/stored/dvd.c index 15692518a0..21f1d992bb 100644 --- a/bacula/src/stored/dvd.c +++ b/bacula/src/stored/dvd.c @@ -311,11 +311,13 @@ bool dvd_write_part(DCR *dcr) edit_device_codes_dev(dev, ocmd, icmd); /* - * Wait at most the time a maximum size part is written in DVD 0.5x speed - * FIXME: Minimum speed should be in device configuration + * original line follows + * timeout = dev->max_open_wait + (dev->max_part_size/(1350*1024/2)); + * I modified this for a longer timeout; pre-formatting, blanking and + * writing can take quite a while */ - timeout = dev->max_open_wait + (dev->max_part_size/(1350*1024/2)); - + timeout = dev->max_open_wait + (dev->max_part_size/(1350*1024)*8); + Dmsg2(29, "dvd_write_part: cmd=%s timeout=%d\n", ocmd.c_str(), timeout); {