]> git.sur5r.net Git - bacula/bacula/blob - bacula/patches/2.4.x/2.4.1-mount.patch
Cleanup patches a bit
[bacula/bacula] / bacula / patches / 2.4.x / 2.4.1-mount.patch
1
2  This patch causes the SD to try at least once to mount a Volume
3  that is not in an Autochanger before asking the operator to
4  intervene. Without it, the user must issue a mount command for
5  every File based volume that is needed.
6
7  Apply to 2.4.1 with the following:
8
9  cd <bacula-source>
10  patch -p0 <2.4.1-mount.patch
11  ./configure <your-options>
12  make
13  ...
14  make install
15
16
17 Index: src/stored/mount.c
18 ===================================================================
19 --- src/stored/mount.c  (revision 7378)
20 +++ src/stored/mount.c  (working copy)
21 @@ -142,7 +142,7 @@
22     } else {
23        autochanger = false;
24        VolCatInfo.Slot = 0;
25 -      ask = true;
26 +      ask = retry >= 2;
27     }
28     Dmsg1(150, "autoload_dev returns %d\n", autochanger);
29     /*