/*
Bacula® - The Network Backup Solution
- Copyright (C) 2000-2008 Free Software Foundation Europe e.V.
+ Copyright (C) 2000-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.
}
}
-char *encode_time(time_t time, char *buf)
+char *encode_time(utime_t utime, char *buf)
{
struct tm tm;
int n = 0;
+ time_t time = utime;
#if defined(HAVE_WIN32)
/*
case JS_Error:
jobstat = _("Non-fatal error");
break;
+ case JS_Warnings:
+ jobstat = _("OK -- with warnings");
+ break;
case JS_Canceled:
jobstat = _("Canceled");
break;
case JS_Terminated:
cnv = _("Completed successfully");
break;
+ case JS_Warnings:
+ cnv = _("Completed with warnings");
+ break;
case JS_ErrorTerminated:
cnv = _("Terminated with errors");
break;
if (cnv) {
bstrncpy(msg, cnv, maxlen);
} else {
- jobstatus_to_ascii( JobStatus, msg, maxlen);
+ jobstatus_to_ascii(JobStatus, msg, maxlen);
}
}
case JS_Terminated:
str = _("OK");
break;
+ case JS_Warnings:
+ str = _("OK -- with warnings");
+ break;
case JS_ErrorTerminated:
case JS_Error:
str = _("Error");
case JT_COPY:
str = _("Copy");
break;
+ case JT_JOB_COPY:
+ str = _("Job Copy");
+ break;
case JT_CONSOLE:
str = _("Console");
break;
case L_VERIFY_DATA:
str = _("Verify Data");
break;
+ case L_VIRTUAL_FULL:
+ str = _("Virtual Full");
+ break;
case L_NONE:
str = " ";
break;
NT_("Full"), _("Full"),
NT_("Used"), _("Used"),
NT_("Cleaning"), _("Cleaning"),
+ NT_("Purged"), _("Purged"),
NT_("Recycle"), _("Recycle"),
NT_("Read-Only"), _("Read-Only"),
NT_("Error"), _("Error"),
if (status) {
for (pos = 0 ; vs[pos] ; pos += 2) {
if ( !strcmp(vs[pos],status) ) {
- return vs[pos+1];
+ return vs[pos+1];
}
}
}
break;
case 'l':
if (jcr) {
- str = job_level_to_str(jcr->JobLevel);
+ str = job_level_to_str(jcr->get_JobLevel());
} else {
str = _("*none*");
}
break;
case 't':
if (jcr) {
- str = job_type_to_str(jcr->JobType);
+ str = job_type_to_str(jcr->get_JobType());
} else {
str = _("*none*");
}