2 This patch prevents the "status dir" command from trying to use a scratch
3 volume and possibly moving it from one pool to another. This patch fixes
6 Apply the patch to 2.2.6 (and possibly any 2.2.x version with):
9 patch -p0 <2.2.6-scratch.patch
10 ./configure <your-options>
17 Index: src/dird/next_vol.c
18 ===================================================================
19 --- src/dird/next_vol.c (revision 5999)
20 +++ src/dird/next_vol.c (working copy)
22 prune_volumes(jcr, InChanger, mr);
24 ok = recycle_oldest_purged_volume(jcr, InChanger, mr);
26 + if (!ok && create) {
27 Dmsg4(050, "after prune volumes_vol ok=%d index=%d InChanger=%d Vstat=%s\n",
28 ok, index, InChanger, mr->VolStatus);