From 2e4afd8babca943e4ffd2546bc5846f92c1b5084 Mon Sep 17 00:00:00 2001 From: Kern Sibbald Date: Tue, 9 Sep 2003 19:29:03 +0000 Subject: [PATCH] Print warning when drive is unmounted + misc cleanups git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@692 91ce42f0-d328-0410-95d8-f526ca767f89 --- bacula/kernstodo | 14 ++++++++++---- bacula/src/dird/dird.c | 6 +++++- 2 files changed, 15 insertions(+), 5 deletions(-) diff --git a/bacula/kernstodo b/bacula/kernstodo index 296cdf0367..369ef992ed 100644 --- a/bacula/kernstodo +++ b/bacula/kernstodo @@ -1,5 +1,5 @@ Kern's ToDo List - 3 September 2003 + 9 September 2003 Documentation to do: (any release a little bit at a time) - Document running a test version. @@ -34,10 +34,14 @@ For 1.32: scan 1; scan 1-5; scan 1,2,4 ... to update the catalog - Allow a slot or range of slots on the label barcodes command. when the magazine is changed. -- Figure out what is interrupting sql command in console. - Don't print "Warning: Wrong Volume mounted ..." if mounting second volume. - Implement List Volume Job=xxx or List scheduled volumes or Status Director + + +For 1.33 +- If pool specified to label command and Label Format is specified, + automatically generate the Volume name. - Take a careful look a the Basic recycling algorithm. When Bacula chooses, the order should be: - Look for Append @@ -52,9 +56,7 @@ For 1.32: Define a "available" status, which is the currently mounted Volume and all volumes that are currently in the autochanger. - -For 1.33 - Why can't SQL do the filename sort for restore? - Is a pool specification really needed for a restore? Yes, and you may want to exclude archive Pools. @@ -890,3 +892,7 @@ Done: (see kernsdone for more) - Specify list of files to restore - Implement ClientRunBeforeJob and ClientRunAfterJob. - Make | and < work on FD side. +- Check to see if "blocked" is set during restore. +- Figure out what is interrupting sql command in console. +- Make new job print warning User Unmounted Tape. + diff --git a/bacula/src/dird/dird.c b/bacula/src/dird/dird.c index 665f7fb86a..91d7dd4e0a 100644 --- a/bacula/src/dird/dird.c +++ b/bacula/src/dird/dird.c @@ -390,7 +390,11 @@ Without that I don't know who I am :-(\n"), configfile); cr.MinValue = counter->MinValue; cr.MaxValue = counter->MaxValue; cr.CurrentValue = counter->MinValue; - bstrncpy(cr.WrapCounter, counter->WrapCounter->hdr.name, sizeof(cr.WrapCounter)); + if (counter->WrapCounter) { + bstrncpy(cr.WrapCounter, counter->WrapCounter->hdr.name, sizeof(cr.WrapCounter)); + } else { + cr.WrapCounter[0] = 0; /* empty string */ + } if (db_create_counter_record(NULL, db, &cr)) { counter->CurrentValue = cr.CurrentValue; counter->created = true; -- 2.39.5