From: Kern Sibbald Date: Sun, 14 Sep 2008 14:51:26 +0000 (+0000) Subject: Update technotes and kernstodo X-Git-Tag: Release-7.0.0~4135 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=4d9d2daf4b3158f365a7d0fcb30f2e60bd14acce;p=bacula%2Fbacula Update technotes and kernstodo git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7593 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kernstodo b/bacula/kernstodo index 975c2c7a46..0b290f351d 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -71,6 +71,9 @@ Professional Needs: Priority: ================ +- Deadlock detection, watchdog sees if counter advances when jobs are + running. With debug on, can do a "status" command. +- User options for plugins. - Autolabel only if Volume catalog information indicates tape not written. This will avoid overwriting a tape that gets an I/O error on reading the volume label. diff --git a/bacula/src/dird/dird_conf.c b/bacula/src/dird/dird_conf.c index f7c0a27e64..5f4a570a13 100644 --- a/bacula/src/dird/dird_conf.c +++ b/bacula/src/dird/dird_conf.c @@ -309,7 +309,6 @@ RES_ITEM job_items[] = { {"prunefiles", store_bool, ITEM(res_job.PruneFiles), 0, ITEM_DEFAULT, false}, {"prunevolumes",store_bool, ITEM(res_job.PruneVolumes), 0, ITEM_DEFAULT, false}, {"enabled", store_bool, ITEM(res_job.enabled), 0, ITEM_DEFAULT, true}, - {"optimizejobscheduling",store_bool, ITEM(res_job.OptimizeJobScheduling), 0, ITEM_DEFAULT, false}, {"spoolattributes",store_bool, ITEM(res_job.SpoolAttributes), 0, ITEM_DEFAULT, false}, {"spooldata", store_bool, ITEM(res_job.spool_data), 0, ITEM_DEFAULT, false}, {"spoolsize", store_size, ITEM(res_job.spool_size), 0, 0, 0}, diff --git a/bacula/src/dird/dird_conf.h b/bacula/src/dird/dird_conf.h index 9f9dfef8f1..d33a1156f4 100644 --- a/bacula/src/dird/dird_conf.h +++ b/bacula/src/dird/dird_conf.h @@ -427,7 +427,6 @@ public: bool PreferMountedVolumes; /* Prefer vols mounted rather than new one */ bool write_part_after_job; /* Set to write part after job in SD */ bool enabled; /* Set if job enabled */ - bool OptimizeJobScheduling; /* Set if we should optimize Job scheduling */ bool accurate; /* Set if it is an accurate backup job */ bool AllowDuplicateJobs; /* Allow duplicate jobs */ bool AllowHigherDuplicates; /* Permit Higher Level */ diff --git a/bacula/src/filed/restore.c b/bacula/src/filed/restore.c index 4d0a541dc4..52b304f3d0 100644 --- a/bacula/src/filed/restore.c +++ b/bacula/src/filed/restore.c @@ -366,6 +366,10 @@ void do_restore(JCR *jcr) } else { stat = create_file(jcr, attr, &rctx.bfd, jcr->replace); } + jcr->lock(); + pm_strcpy(jcr->last_fname, attr->ofname); + jcr->last_type = attr->type; + jcr->unlock(); Dmsg2(130, "Outfile=%s create_file stat=%d\n", attr->ofname, stat); switch (stat) { case CF_ERROR: @@ -375,11 +379,7 @@ void do_restore(JCR *jcr) extract = true; /* FALLTHROUGH */ case CF_CREATED: /* File created, but there is no content */ - jcr->lock(); - pm_strcpy(jcr->last_fname, attr->ofname); - jcr->last_type = attr->type; jcr->JobFiles++; - jcr->unlock(); rctx.fileAddr = 0; print_ls_output(jcr, attr); diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 8b756a91ff..a9615fa64d 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -2,35 +2,18 @@ New features: -*Bat API Plugin API -PluginOptions -FD Version -Implement ftruncate for NFS devices -separator in console (!$%&'()*+,-/:;<>?[]^`{|}~) +command separator in console (!$%&'()*+,-/:;<>?[]^`{|}~) examples/database/dbcheck.sql dbi database driver --enable-libdb dbdriver in bacula-dir.conf --with-db-port -support for Ubuntu recyclepool in dird/ua_select.co??? enhancement to wait command: wait mount ... parse config -plugindirectory dbport dbdriver -maxrunschedtime??? -fullmaxwaittime??? -incrementalmaxwaittime??? -differentialmaxwaittime??? -fullmaxruntime??? -differentialmaxruntime??? -incrementalmaxruntime??? -optimizejobscheduling??? -pluginoptions -plugin -checkfilechanges default = yes. remove reader/writer in FOPTS???? @@ -464,7 +447,8 @@ kes Replace released flag in VOLRES with reserved and add access methods for the VOLRES class. kes Prevent volume from being released while being swapped. kes Apply Bastian Friedrich's edit codes patch for the bpipe-fd - plugin. + plugin that add %w (where) and %r (replace flag) editing to + the plugin line. kes Apply Bastial Friedrich's edit pool=%p patch for run clone jobs. kes Refactor parts of stored/mount.c