From abb65c0727c5b4dec5041d2343427ba771d1fbd0 Mon Sep 17 00:00:00 2001 From: Nicolas Boichat Date: Fri, 14 Oct 2005 14:04:12 +0000 Subject: [PATCH] Use part_size and not max_part_size when setting write timeout. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@2442 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/nb-1.37 | 1 + bacula/src/stored/dvd.c | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bacula/nb-1.37 b/bacula/nb-1.37 index 278caa62ce..2d01f9d4f2 100644 --- a/bacula/nb-1.37 +++ b/bacula/nb-1.37 @@ -5,6 +5,7 @@ General: Changes to 1.37.*: 14Oct05 + - dvd.c:dvd_write_part: Use part_size and not max_part_size when setting write timeout. - dvd.c:do_mount_dev: When checking if the DVD is mounted, do not count ., .. and .keep (needed on Gentoo). 15Aug05 - Convert dvd-writepart to Python. diff --git a/bacula/src/stored/dvd.c b/bacula/src/stored/dvd.c index 9e62acfe91..dfd20b751a 100644 --- a/bacula/src/stored/dvd.c +++ b/bacula/src/stored/dvd.c @@ -323,8 +323,10 @@ bool dvd_write_part(DCR *dcr) * 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 + * + * NB: Use part_size and not max_part_size, needed when you don't set max part size (so it defaults to 0) */ - timeout = dev->max_open_wait + (dev->max_part_size/(1350*1024)*8); + timeout = dev->max_open_wait + (dev->part_size/(1350*1024)*8); Dmsg2(29, "dvd_write_part: cmd=%s timeout=%d\n", ocmd.c_str(), timeout); -- 2.39.5