bool send_level_command(JCR *jcr)
{
BSOCK *fd = jcr->file_bsock;
- const char *accurate = jcr->job->accurate?"accurate_":"";
+ const char *accurate = jcr->accurate?"accurate_":"";
const char *not_accurate = "";
/*
* Send Level command to File daemon
int listing = 0;
char since[MAXSTRING];
JCR *jcr = ua->jcr;
+ int accurate=-1;
jcr->set_JobLevel(L_FULL);
for (int i=1; i<ua->argc; i++) {
return 1;
}
}
+ if (strcasecmp(ua->argk[i], NT_("accurate")) == 0) {
+ if (!is_yesno(ua->argv[i], &accurate)) {
+ ua->error_msg(_("Invalid value for accurate. "
+ "It must be yes or no.\n"));
+ }
+ }
}
if (!job && !(client && fileset)) {
if (!(job = select_job_resource(ua))) {
goto bail_out;
}
+ /* The level string change if accurate mode is enabled */
+ if (accurate >= 0) {
+ jcr->accurate = accurate;
+ } else {
+ jcr->accurate = job->accurate;
+ }
+
if (!send_level_command(jcr)) {
goto bail_out;
}
* If the job is in accurate mode, we send the list of
* all files to FD.
*/
- jcr->accurate = job->accurate;
+ Dmsg1(40, "estimate accurate=%i\n", jcr->accurate);
if (!send_accurate_current_files(jcr)) {
goto bail_out;
}
02Jul09
kes Another fix for bug #1311 to get the correct last_full_time
ebl Make estimate command accurate compatible. Should fix #1318
+ebl Add estimate accurate=yes/no
+ebl Change the code to check jcr->accurate and not jcr->job->accurate
01Jul09
kes Fix bug #1317 Allow duplicate jobs = no does not work
kes Eliminate double job report when do_xxx_init() returns failure