From 935ef4653e7e9c0bfe0b018df545bba423a8641a Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Sat, 24 Oct 2009 11:29:06 +0200 Subject: [PATCH] Set tries to 1 for a non-timeout mount or unmount operation. --- bacula/src/stored/dev.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); -- 2.39.5