const char *accurate = jcr->accurate?"accurate_":"";
const char *not_accurate = "";
const char *rerunning = jcr->rerunning?" rerunning ":" ";
+ const char *estimate = jcr->estimate?" estimate ": "";
/*
* Send Level command to File daemon
*/
switch (jcr->getJobLevel()) {
case L_BASE:
- fd->fsend(levelcmd, not_accurate, "base", rerunning, 0, "", "");
+ fd->fsend(levelcmd, not_accurate, "base", rerunning, 0, estimate, "");
break;
/* L_NONE is the console, sending something off to the FD */
case L_NONE:
case L_FULL:
- fd->fsend(levelcmd, not_accurate, "full", rerunning, 0, "", "");
+ fd->fsend(levelcmd, not_accurate, "full", rerunning, 0, estimate, "");
break;
case L_DIFFERENTIAL:
- fd->fsend(levelcmd, accurate, "differential", rerunning, 0, "", "");
+ fd->fsend(levelcmd, accurate, "differential", rerunning, 0, estimate, "");
send_since_time(jcr);
break;
case L_INCREMENTAL:
- fd->fsend(levelcmd, accurate, "incremental", rerunning, 0, "", "");
+ fd->fsend(levelcmd, accurate, "incremental", rerunning, 0, estimate, "");
send_since_time(jcr);
break;
case L_SINCE:
bool use_all_JobIds; /* Use all jobids present in command line */
bool sd_client; /* This job runs as SD client */
bool dummy_jobmedia; /* Dummy JobMedia written */
+ bool estimate; /* if the job is an estimate instead of a run */
#endif /* DIRECTOR_DAEMON */
#ifdef FILE_DAEMON
alist *plugin_verify; /* Registered plugins that need a copy of the data in verify job */
alist *plugin_options_list; /* list of the options to use in a job */
alist *fileevents; /* list of the current file events to record and send to the DIR */
+ bool estimate; /* if the job is an estimate instead of a run */
#endif /* FILE_DAEMON */
char Job[MAX_NAME_LENGTH];
};
+union plugin_event_level {
+
+};
extern struct s_last_job last_job;
extern DLL_IMP_EXP dlist *last_jobs;