On Tue, Dec 19, 2000 at 10:00:23AM +0100, David Klasinc wrote:
> Banzai!
>
> I upgraded to 2.4.2 and I noticed that if dump won't fit on one disk that
> amdump will go into endless loop trying to do a backup.
Could you try this patch?
Jean-Louis
--
Jean-Louis Martineau email: [EMAIL PROTECTED]
Departement IRO, Universite de Montreal
C.P. 6128, Succ. CENTRE-VILLE Tel: (514) 343-6111 ext. 3529
Montreal, Canada, H3C 3J7 Fax: (514) 343-5834
--- server-src/driver.c.orig Tue Dec 19 10:25:37 2000
+++ server-src/driver.c Tue Dec 19 10:51:13 2000
@@ -821,11 +821,15 @@
if( busy_dumpers == 1 ) { /* case c */
assignedhd_t **holdp;
int i;
+ int est_size;
/* set estimate to more than what is already use */
- sched(dp)->est_size = 20 * TAPE_BLOCK_SIZE;
+ est_size = 20 * TAPE_BLOCK_SIZE;
holdp = sched(dp)->holdp;
for(i=0; holdp[i]; i++ ) { /* for each disk */
- sched(dp)->est_size += holdp[i]->used;
+ est_size += holdp[i]->used;
+ }
+ if(est_size > sched(dp)->est_size) {
+ sched(dp)->est_size = est_size;
}
}
/* case b */