From: Alain Spineux Date: Wed, 17 May 2023 16:11:26 +0000 (+0200) Subject: fix #10137 Volume XXX in unavailable now. X-Git-Tag: Beta-15.0.0~189 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93f5ee03781cf4e9aa370f107a3cbdcc83722608;p=thirdparty%2Fbacula.git fix #10137 Volume XXX in unavailable now. - I put my "case" in the middle of a "fall through" cascade of "case" - I moved it up above the "cascade" - I'm not able to reproduce the problem with volumes on disk - 100% sure that this will change the behavior at the customer level --- diff --git a/bacula/src/stored/mount.c b/bacula/src/stored/mount.c index 15e411f45..909025c24 100644 --- a/bacula/src/stored/mount.c +++ b/bacula/src/stored/mount.c @@ -524,6 +524,10 @@ int DCR::check_volume_label(bool &ask, bool &autochanger) goto check_next_volume; } break; /* got a Volume */ + case VOL_ENC_ERROR: + volume_is_unavailable(); + goto check_next_volume; + break; /* * At this point, we assume we have a blank tape mounted. */ @@ -541,10 +545,6 @@ int DCR::check_volume_label(bool &ask, bool &autochanger) break; } /* NOTE! Fall-through wanted. */ - case VOL_ENC_ERROR: - volume_is_unavailable(); - goto check_next_volume; - break; case VOL_NO_MEDIA: default: Dmsg0(200, "VOL_NO_MEDIA or default.\n");