From: Eric Bollengier Date: Sat, 4 Oct 2008 14:09:48 +0000 (+0000) Subject: ebl Remove missing Loaded information from status slots storage command. X-Git-Tag: Release-7.0.0~4033 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=f0874d72b822545616d2e7de7ae0cc75717b02b0;p=bacula%2Fbacula ebl Remove missing Loaded information from status slots storage command. ebl Fix Console command problem that cancel the job git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7701 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/src/dird/ua_cmds.c b/bacula/src/dird/ua_cmds.c index b5650d8686..40d43412ce 100644 --- a/bacula/src/dird/ua_cmds.c +++ b/bacula/src/dird/ua_cmds.c @@ -160,9 +160,11 @@ bool do_a_command(UAContext *ua) return false; } +#ifdef xxxx while (ua->jcr->wstorage->size()) { ua->jcr->wstorage->remove(0); } +#endif len = strlen(ua->argk[0]); for (i=0; iapi) { - ua->info_msg(_(" Slot | Volume Name | Status | Media Type | Pool | Loaded |\n")); - ua->info_msg(_("------+------------------+-----------+----------------------+--------------------+---------|\n")); + ua->info_msg(_(" Slot | Volume Name | Status | Media Type | Pool |\n")); + ua->info_msg(_("------+------------------+-----------+----------------------+--------------------|\n")); } /* Walk through the list getting the media records */ @@ -1087,7 +1087,7 @@ void status_slots(UAContext *ua, STORE *store_r) if (!ua->api) { ua->info_msg(slot_hformat, vl->Slot, '*', - "?", "?", "?", "?", 0); + "?", "?", "?", "?"); } else { ua->info_msg(slot_api_empty_format, vl->Slot); } @@ -1099,7 +1099,7 @@ void status_slots(UAContext *ua, STORE *store_r) if (slot_list[i]) { if (!ua->api) { ua->info_msg(slot_hformat, - i, ' ', "", "", "", "", 0); + i, ' ', "", "", "", ""); } else { ua->info_msg(slot_api_empty_format, i); } @@ -1121,11 +1121,11 @@ void status_slots(UAContext *ua, STORE *store_r) /* Print information */ ua->info_msg(slot_hformat, vl->Slot, ((vl->Slot==mr.Slot)?' ':'*'), - mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name, 0); + mr.VolumeName, mr.VolStatus, mr.MediaType, pr.Name); } else { ua->info_msg(slot_api_full_format, vl->Slot, mr.Slot, mr.VolumeName, mr.VolStatus, - mr.MediaType, pr.Name, 0); + mr.MediaType, pr.Name); } db_unlock(ua->db); @@ -1133,7 +1133,7 @@ void status_slots(UAContext *ua, STORE *store_r) } else { /* TODO: get information from catalog */ ua->info_msg(slot_hformat, vl->Slot, '*', - mr.VolumeName, "?", "?", "?", 0); + mr.VolumeName, "?", "?", "?"); } db_unlock(ua->db); } @@ -1144,7 +1144,7 @@ void status_slots(UAContext *ua, STORE *store_r) if (slot_list[i]) { if (!ua->api) { ua->info_msg(slot_hformat, - i, ' ', "", "", "", "", 0); + i, ' ', "", "", "", ""); } else { ua->info_msg(slot_api_empty_format, i); } diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index e1b16bdc72..c0443aa3dc 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -18,6 +18,8 @@ remove reader/writer in FOPTS???? General: 04Oct08 +ebl Remove missing Loaded information from status slots storage command. +ebl Fix Console command problem that cancel the job kes Add more plugin restore debug code. 03Oct08 kes Fix plugin_bwrite - plugin-blseek mixup pointed out by James.