2 This patch is backported from the development SVN and should fix
3 bug #1213, which is a deadlock in the SD when a volume is on the
6 Apply it to version 2.4.4 with:
9 patch -p0 <2.4.4-sd-deadlock.patch
10 ./configure <your options>
16 Index: src/stored/reserve.c
17 ===================================================================
18 --- src/stored/reserve.c (revision 8426)
19 +++ src/stored/reserve.c (working copy)
22 Bacula® - The Network Backup Solution
24 - Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
25 + Copyright (C) 2000-2009 Free Software Foundation Europe e.V.
27 The main author of Bacula is Kern Sibbald, with contributions from
28 many others, a complete list can be found in the file AUTHORS.
30 void DCR::unreserve_device()
36 reserved_volume = false;
45 Index: src/stored/acquire.c
46 ===================================================================
47 --- src/stored/acquire.c (revision 8426)
48 +++ src/stored/acquire.c (working copy)
51 Bacula® - The Network Backup Solution
53 - Copyright (C) 2002-2008 Free Software Foundation Europe e.V.
54 + Copyright (C) 2002-2009 Free Software Foundation Europe e.V.
56 The main author of Bacula is Kern Sibbald, with contributions from
57 many others, a complete list can be found in the file AUTHORS.
60 /* Detach this dcr only if attached */
61 if (dcr->attached_to_dev && dev) {
63 dcr->unreserve_device();
65 dcr->dev->attached_dcrs->remove(dcr); /* detach dcr from device */
66 dcr->attached_to_dev = false;
67 // remove_dcr_from_dcrs(dcr); /* remove dcr from jcr list */