From: Marco van Wieringen Date: Sat, 24 Oct 2009 09:29:06 +0000 (+0200) Subject: Set tries to 1 for a non-timeout mount or unmount operation. X-Git-Tag: Release-7.0.0~2598^2~41 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=935ef4653e7e9c0bfe0b018df545bba423a8641a;p=bacula%2Fbacula Set tries to 1 for a non-timeout mount or unmount operation. --- diff --git a/bacula/src/stored/dev.c b/bacula/src/stored/dev.c index f6db91c261..36b03d9236 100644 --- a/bacula/src/stored/dev.c +++ b/bacula/src/stored/dev.c @@ -2164,7 +2164,7 @@ bool DEVICE::do_tape_mount(int mount, int dotimeout) /* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */ tries = 10; } else { - tries = 0; + tries = 1; } results = get_memory(4000); @@ -2222,7 +2222,7 @@ bool DEVICE::do_file_mount(int mount, int dotimeout) /* Try at most 10 times to (un)mount the device. This should perhaps be configurable. */ tries = 10; } else { - tries = 0; + tries = 1; } results = get_memory(4000);