From 1088ab437976ba76e172757a25de922fc1728890 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