From 0dab0adfbfb7513a58f11e180b2a543fc8ba5948 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 20 Apr 2010 14:16:56 +0200 Subject: [PATCH] Correct Pool display in SD status. Fixes bug #1541 --- bacula/src/stored/vol_mgr.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/bacula/src/stored/vol_mgr.c b/bacula/src/stored/vol_mgr.c index 6c6231b73e..179ffef542 100644 --- a/bacula/src/stored/vol_mgr.c +++ b/bacula/src/stored/vol_mgr.c @@ -621,6 +621,10 @@ bool free_volume(DEVICE *dev) if (!vol->is_swapping()) { Dmsg1(dbglvl, "=== clear in_use vol=%s\n", vol->vol_name); dev->vol = NULL; + if (!dev->num_reserved()) { + dev->pool_name[0] = 0; + dev->pool_type[0] = 0; + } vol_list->remove(vol); Dmsg2(dbglvl, "=== remove volume %s dev=%s\n", vol->vol_name, dev->print_name()); free_vol_item(vol); -- 2.39.5