/*
Bacula® - The Network Backup Solution
- Copyright (C) 2001-2007 Free Software Foundation Europe e.V.
+ Copyright (C) 2001-2008 Free Software Foundation Europe e.V.
The main author of Bacula is Kern Sibbald, with contributions from
many others, a complete list can be found in the file AUTHORS.
if (!dev->is_open()) {
dev->clear_volhdr();
}
+ volume_unused(dcr); /* no longer using volume */
give_back_device_lock(dev, &hold);
return;
}
ok = false;
break;
}
+ volume_unused(dcr);
give_back_device_lock(dev, &hold);
return ok;
}
} else { /* device not being used */
Dmsg0(90, "Device not in use, releaseing\n");
unload_autochanger(dcr, -1);
- release_volume(dcr);
+ dcr->release_volume();
dir->fsend(_("3022 Device %s released.\n"),
dev->print_name());
}