From: Kern Sibbald Date: Sat, 13 Sep 2008 12:13:01 +0000 (+0000) Subject: kes Add host name to items printed during dump. X-Git-Tag: Release-3.0.0~989 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=6ff3932ddf722354f55bcb6aeb8cc8808dad037d;p=bacula%2Fbacula kes Add host name to items printed during dump. kes Make Check File Changes default on. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@7587 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/scripts/btraceback.gdb b/bacula/scripts/btraceback.gdb index 416f70f3e6..0b027b91c0 100644 --- a/bacula/scripts/btraceback.gdb +++ b/bacula/scripts/btraceback.gdb @@ -6,6 +6,7 @@ print version print host_os print distname print distver +print host_name bt thread apply all bt f 0 diff --git a/bacula/src/dird/inc_conf.c b/bacula/src/dird/inc_conf.c index 59d44e28e3..809e40515e 100644 --- a/bacula/src/dird/inc_conf.c +++ b/bacula/src/dird/inc_conf.c @@ -126,8 +126,8 @@ static RES_ITEM options_items[] = { {"hfsplussupport", store_opts, {0}, 0, 0, 0}, {"noatime", store_opts, {0}, 0, 0, 0}, {"enhancedwild", store_opts, {0}, 0, 0, 0}, - {"drivetype", store_drivetype, {0}, 0, 0, 0}, - {"checkfilechanges",store_opts, {0}, 0, 0, 0}, + {"drivetype", store_drivetype, {0}, 0, 0, 0}, + {"checkfilechanges",store_opts, {0}, 0, 0, 1}, {"strippath", store_opts, {0}, 0, 0, 0}, {"honornodumpflag", store_opts, {0}, 0, 0, 0}, {NULL, NULL, {0}, 0, 0, 0} diff --git a/bacula/src/lib/message.c b/bacula/src/lib/message.c index 0ffb592b98..ecf5945c9c 100644 --- a/bacula/src/lib/message.c +++ b/bacula/src/lib/message.c @@ -54,6 +54,7 @@ bool dbg_timestamp = false; /* print timestamp in debug output */ time_t daemon_start_time = 0; /* Daemon start time */ const char *version = VERSION " (" BDATE ")"; char my_name[30]; /* daemon name is stored here */ +char host_name[50]; /* host machine name */ char *exepath = (char *)NULL; char *exename = (char *)NULL; int console_msg_pending = false; @@ -108,6 +109,9 @@ void my_name_is(int argc, char *argv[], const char *name) char cpath[1024]; int len; + if (gethostname(host_name, sizeof(host_name)) != 0) { + bstrncpy(host_name, "Hostname unknown", sizeof(host_name)); + } bstrncpy(my_name, name, sizeof(my_name)); if (argc>0 && argv && argv[0]) { /* strip trailing filename and save exepath */ diff --git a/bacula/technotes-2.5 b/bacula/technotes-2.5 index 9cef8eac56..8af5fabb2b 100644 --- a/bacula/technotes-2.5 +++ b/bacula/technotes-2.5 @@ -2,43 +2,18 @@ New features: -*Accurate files -*TLS authentication -*bextract Win32 data -*Run afterVSS -*Multiple command/console per runscript -*console command in runscript *Bat API Plugin API -*State file updated on job term PluginOptions FD Version -*Duplicate Job directives - - Allow Duplicate Jobs - - Allow Higher Duplicates - - Cancel Queued Duplicates - - Cancel Running Duplicates - Ensure they work with RerunFailedLevels -*MaxFullInterval -*MaxDiffInterval -*Honor nodump flag -*Improved status commands for Bat -*Spooling/despooling status Implement ftruncate for NFS devices -*Add long term statistics job table -* (Use Statistics) -*vtape driver -*Ignore Dir separator in console (!$%&'()*+,-/:;<>?[]^`{|}~) -*Copy jobs examples/database/dbcheck.sql dbi database driver --enable-libdb dbdriver in bacula-dir.conf --with-db-port support for Ubuntu -*status_slots -*spoolSize by Job recyclepool in dird/ua_select.co??? enhancement to wait command: wait mount ... parse config @@ -53,14 +28,16 @@ fullmaxruntime??? differentialmaxruntime??? incrementalmaxruntime??? optimizejobscheduling??? -*spoolsize -*usestatistics pluginoptions plugin +checkfilechanges default = yes. remove reader/writer in FOPTS???? General: +13Sep08 +kes Add host name to items printed during dump. +kes Make Check File Changes default on. 11Sep08 kes Set the default FD timeout to 3 minutes (previously 30). kes Apply Bastian Friedrich's weird spelling correction patch.