kes Check restored size only for regular files.
kes Store Python job level in job record in Dir.
git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3506
91ce42f0-d328-0410-95d8-
f526ca767f89
Priority:
For 1.39:
-- Make sure that the restore options don't permit "seeing" other
- Client's job data. -- mostly fixed.
- Implement Python event for backing up/restoring a file.
- Change dbcheck to tell users to use native tools for fixing
broken databases, and to ensure they have the proper indexes.
is not permitted.
- When reading through parts on the DVD, the DVD is mounted and
unmounted for each part.
+- Make sure that the restore options don't permit "seeing" other
+ Client's job data.
+- Restore of a raw drive should not try to check the volume size.
if (strcmp(strval, joblevels[i].level_name) == 0) {
if (joblevels[i].job_type == jcr->JobType) {
jcr->JobLevel = joblevels[i].level;
+ jcr->jr.JobLevel = jcr->JobLevel;
return 0;
}
}
Dmsg1(20, "RestoreJobId=%d\n", jcr->job->RestoreJobId);
if (!jcr->RestoreBootstrap) {
- Jmsg0(jcr, M_FATAL, 0, _("Cannot restore without bootstrap file.\n"));
+ Jmsg0(jcr, M_FATAL, 0, _("Cannot restore without a bootstrap file.\n"
+ "You probably ran a restore job directly. All restore jobs must\n"
+ "be run using the restore command.\n"));
restore_cleanup(jcr, JS_ErrorTerminated);
return false;
}
char ec1[50], ec2[50];
fsize = blseek(ofd, 0, SEEK_END);
bclose(ofd); /* first close file */
- if (fsize > 0 && fsize != (off_t)attr->statp.st_size) {
+ if (attr->type == FT_REG && fsize > 0 && fsize != (off_t)attr->statp.st_size) {
Jmsg3(jcr, M_ERROR, 0, _("File size of restored file %s not correct. Original %s, restored %s.\n"),
attr->ofname, edit_uint64(attr->statp.st_size, ec1),
edit_uint64(fsize, ec2));
General:
26Sep06
+kes Enhance error message when restoring without bootstrap file.
+kes Check restored size only for regular files.
+kes Store Python job level in job record in Dir.
kes Add back code to open tape device nonblocking, but if rewind fails
release file descriptor.
kes Modify acquire.c to first try autoloading the device. Also, ask operator