From 07af86c9577cdfb7b51dce4221d5e9c5e26126a8 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Wed, 18 Jul 2007 18:49:10 +0000 Subject: [PATCH] Update technotes for next beta git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@5195 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/ChangeLog | 41 ++++++++++++++++++++ bacula/ReleaseNotes | 14 ++++++- bacula/src/dird/next_vol.c | 79 +++++++++++++++++++------------------- bacula/src/version.h | 6 +-- bacula/technotes-2.1 | 3 ++ 5 files changed, 99 insertions(+), 44 deletions(-) diff --git a/bacula/ChangeLog b/bacula/ChangeLog index 797f5d987e..6e4158bb95 100644 --- a/bacula/ChangeLog +++ b/bacula/ChangeLog @@ -1,6 +1,47 @@ Technical notes on version 2.1 General: +Release 2.1.28 beta +18Jul08 +kes Update Release notes +17Jul07 +ebl fix a bug in get_scratch_volume() report by Andreas Helmcke + Warning, in previous beta version, all media get from scratch keep their + old retention. +16Jul07 +kes Tweaked Win32 installer to remove temp conf files at uninstall time. + This should fix bug #842. Made a note to look at removing the temp + files at the end of the install. +kes Add ability to mount and unmount a file device providing it is + marked as being removable and has the appropriate mount and unmount + commands defined in the Device resource. This fixes bug #830. +kes When applying a storage override, release all previous storage + definitions rather than just prepending the new storage. + This should prevent a good deal of confusion. +14Jul07 +kes Implement ./configure search for qwt libraries. +13Jul07 +kes Disable posting the WM_CLOSE message in KillRunningCopy of the + Win32 FD. This should fix bug #893. +kes Remove an unnecessary beep in Win32 init code. +kes Update copyright dates in Win32 executable about boxes. +kes Replace the FSF copyrighted getopt.c and getopt.h in the Win32 + code with a BSD getopt.c and getopt.h. +kes Remove sched.h from the Win32 compat directory -- not used. +kes Remove the Exit menu item from the Win32 tray monitor. If you really + need to shut it down, do it through the services panel or the command + line. +kes Remove some inappropriate Bacula FSFE copyrights. +ebl Tweak status client=xxx to be more easy to parse (more like in 2.0.x) +kes Fix regress config non-portable test as pointed out by + Florian Heigl +kes Fix PSCMD for HP-UX in configure.in to have proper syntax. + as pointed out by Florian Heigl +12Jul07 +kes Fix missing rctx. prefixes on the Darwin code in src/filed/restore.c + Reported by Frank Sweetser. + +Release 2.1.26 beta 12Jul07 kes Fix client-only build. kes Integrate client-only fixes for bsys (initgroups) and conio from diff --git a/bacula/ReleaseNotes b/bacula/ReleaseNotes index aded884338..cf9ae67371 100644 --- a/bacula/ReleaseNotes +++ b/bacula/ReleaseNotes @@ -1,5 +1,5 @@ - Release Notes for Bacula 2.1.26 + Release Notes for Bacula 2.1.28 Bacula code: Total files = 516 Total lines = 244,888 (*.h *.c *.in) @@ -15,6 +15,18 @@ test before relying on it. It should backup and restore reparse points. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +Changes since Beta release 2.1.26 +- Several bug fixes #842, 893, and some unreported bugs. +- Storage overrides delete all previous storage definitions instead + of prepending. +- One should be able to mount and unmount removable devices if the + Device resource has Removeable Media set and the mount and unmount + directives are defined. +- ./configure will do a better job of searching for qwt libraries. +- The Win32 version can no longer be shutdown from the tray monitor. + Use the command line or the Services panne. +- Make Mac OS X compile work. + Changes since Beta release 2.1.24 - Add qwt graphics library (for Qt4) needed to build bat to the depkgs-11Jul07.tar.gz package diff --git a/bacula/src/dird/next_vol.c b/bacula/src/dird/next_vol.c index c42dd4730b..11a253b8d5 100644 --- a/bacula/src/dird/next_vol.c +++ b/bacula/src/dird/next_vol.c @@ -373,46 +373,45 @@ bool get_scratch_volume(JCR *jcr, bool InChanger, MEDIA_DBR *mr) memset(&pr, 0, sizeof(pr)); bstrncpy(pr.Name, jcr->pool->hdr.name, sizeof(pr.Name)); - if (!db_get_pool_record(jcr, jcr->db, &pr)) { - Jmsg(jcr, M_WARNING, 0, _("Unable to get Pool record: ERR=%s"), - db_strerror(jcr->db)); - goto bail_out; - } - - if (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) { - Jmsg(jcr, M_WARNING, 0, _("Unable add Scratch Volume, Pool \"%s\" full MaxVols=%d\n"), - jcr->pool->hdr.name, pr.MaxVols); - goto bail_out; - } - /* OK, now move Scratch Volume */ - - /* - * Get *full* media record to return as db_find_next_volume does - * not return everything . - */ - mr->MediaId = smr.MediaId; - if (!db_get_media_record(jcr, jcr->db, mr)) { - Jmsg(jcr, M_WARNING, 0, _("Unable to get Volume record: ERR=%s"), - db_strerror(jcr->db)); - goto bail_out; - } - /* Set default parameters from current pool */ - set_pool_dbr_defaults_in_media_dbr(mr, &pr); - /* - * set_pool_dbr_defaults_in_media_dbr set VolStatus to Append, - * we could have Recycled media, - */ - bstrncpy(mr->VolStatus, smr.VolStatus, sizeof(smr.VolStatus)); - if (!db_update_media_record(jcr, jcr->db, mr)) { - Jmsg(jcr, M_WARNING, 0, _("Failed to move Scratch Volume. ERR=%s\n"), - db_strerror(jcr->db)); - goto bail_out; - } - - Jmsg(jcr, M_INFO, 0, _("Using Volume \"%s\" from 'Scratch' pool.\n"), - mr->VolumeName); - - ok = true; + if (!db_get_pool_record(jcr, jcr->db, &pr)) { + Jmsg(jcr, M_WARNING, 0, _("Unable to get Pool record: ERR=%s"), + db_strerror(jcr->db)); + goto bail_out; + } + + if (pr.MaxVols > 0 && pr.NumVols >= pr.MaxVols) { + Jmsg(jcr, M_WARNING, 0, _("Unable add Scratch Volume, Pool \"%s\" full MaxVols=%d\n"), + jcr->pool->hdr.name, pr.MaxVols); + goto bail_out; + } + + /* + * Get *full* media record to return as db_find_next_volume does + * not return everything . + */ + mr->MediaId = smr.MediaId; + if (!db_get_media_record(jcr, jcr->db, mr)) { + Jmsg(jcr, M_WARNING, 0, _("Unable to get Volume record: ERR=%s"), + db_strerror(jcr->db)); + goto bail_out; + } + /* Set default parameters from current pool */ + set_pool_dbr_defaults_in_media_dbr(mr, &pr); + /* + * set_pool_dbr_defaults_in_media_dbr set VolStatus to Append, + * we could have Recycled media, + */ + bstrncpy(mr->VolStatus, smr.VolStatus, sizeof(smr.VolStatus)); + if (!db_update_media_record(jcr, jcr->db, mr)) { + Jmsg(jcr, M_WARNING, 0, _("Failed to move Scratch Volume. ERR=%s\n"), + db_strerror(jcr->db)); + goto bail_out; + } + + Jmsg(jcr, M_INFO, 0, _("Using Volume \"%s\" from 'Scratch' pool.\n"), + mr->VolumeName); + + ok = true; } } bail_out: diff --git a/bacula/src/version.h b/bacula/src/version.h index c05ba6a53f..1de0f5a0c9 100644 --- a/bacula/src/version.h +++ b/bacula/src/version.h @@ -3,9 +3,9 @@ */ #undef VERSION -#define VERSION "2.1.27" -#define BDATE "16 July 2007" -#define LSMDATE "16Jul07" +#define VERSION "2.1.28" +#define BDATE "18 July 2007" +#define LSMDATE "18Jul07" #define PROG_COPYRIGHT "Copyright (C) %d-2007 Free Software Foundation Europe e.V.\n" #define BYEAR "2007" /* year for copyright messages in progs */ diff --git a/bacula/technotes-2.1 b/bacula/technotes-2.1 index 418a938f46..839294ca76 100644 --- a/bacula/technotes-2.1 +++ b/bacula/technotes-2.1 @@ -1,6 +1,9 @@ Technical notes on version 2.1 General: +Release 2.1.28 beta +18Jul08 +kes Update Release notes 17Jul07 ebl fix a bug in get_scratch_volume() report by Andreas Helmcke Warning, in previous beta version, all media get from scratch keep their -- 2.39.5