X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=bacula%2Fsrc%2Fstored%2Fstatus.c;h=11939fb247c99b873501a2505ac0436c81283488;hb=3227fb78cccb8cf93511f0ee55a21aff8f372ab9;hp=87d341754144a8402cab11a99f2ae16ba6575154;hpb=217e5ed47147cd420ed0799a96868a561bfd6b57;p=bacula%2Fbacula diff --git a/bacula/src/stored/status.c b/bacula/src/stored/status.c index 87d3417541..11939fb247 100644 --- a/bacula/src/stored/status.c +++ b/bacula/src/stored/status.c @@ -1,7 +1,7 @@ /* Bacula® - The Network Backup Solution - Copyright (C) 2003-2008 Free Software Foundation Europe e.V. + Copyright (C) 2003-2009 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. @@ -97,7 +97,7 @@ void output_status(STATUS_PKT *sp) list_devices(sp); - len = Mmsg(msg, _("In Use Volume status:\n")); + len = Mmsg(msg, _("Used Volume status:\n")); if (!sp->api) sendit(msg, len, sp); list_volumes(sendit, (void *)sp); @@ -400,12 +400,12 @@ static void list_running_jobs(STATUS_PKT *sp) foreach_jcr(jcr) { if (jcr->JobStatus == JS_WaitFD) { len = Mmsg(msg, _("%s Job %s waiting for Client connection.\n"), - job_type_to_str(jcr->JobType), jcr->Job); + job_type_to_str(jcr->get_JobType()), jcr->Job); sendit(msg, len, sp); } dcr = jcr->dcr; rdcr = jcr->read_dcr; - if ((dcr && dcr->device) || rdcr && rdcr->device) { + if ((dcr && dcr->device) || (rdcr && rdcr->device)) { bstrncpy(JobName, jcr->Job, sizeof(JobName)); /* There are three periods after the Job name */ char *p; @@ -417,8 +417,8 @@ static void list_running_jobs(STATUS_PKT *sp) if (rdcr && rdcr->device) { len = Mmsg(msg, _("Reading: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=%s\n"), - job_level_to_str(jcr->JobLevel), - job_type_to_str(jcr->JobType), + job_level_to_str(jcr->get_JobLevel()), + job_type_to_str(jcr->get_JobType()), JobName, jcr->JobId, rdcr->VolumeName, @@ -430,8 +430,8 @@ static void list_running_jobs(STATUS_PKT *sp) if (dcr && dcr->device) { len = Mmsg(msg, _("Writing: %s %s job %s JobId=%d Volume=\"%s\"\n" " pool=\"%s\" device=%s\n"), - job_level_to_str(jcr->JobLevel), - job_type_to_str(jcr->JobType), + job_level_to_str(jcr->get_JobLevel()), + job_type_to_str(jcr->get_JobType()), JobName, jcr->JobId, dcr->VolumeName, @@ -549,6 +549,9 @@ static void list_terminated_jobs(STATUS_PKT *sp) case JS_Terminated: termstat = _("OK"); break; + case JS_Warnings: + termstat = _("OK -- with warnings"); + break; default: termstat = _("Other"); break;