From: Kern Sibbald Date: Sat, 1 Jul 2006 12:32:42 +0000 (+0000) Subject: - Fix a complier warning in files/backup.c X-Git-Tag: Release-7.0.0~7912 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=0d79193a21396cb46f68e327b94308af4eda1e7e;p=bacula%2Fbacula - Fix a complier warning in files/backup.c - Cleanup NOT NULL vs DEFALT 0 in database creation. - Tweak btape. git-svn-id: https://bacula.svn.sourceforge.net/svnroot/bacula/trunk@3101 91ce42f0-d328-0410-95d8-f526ca767f89 --- diff --git a/bacula/kes-1.39 b/bacula/kes-1.39 index 4104481556..38eb560eb3 100644 --- a/bacula/kes-1.39 +++ b/bacula/kes-1.39 @@ -3,6 +3,9 @@ General: 30Jun06 +- Fix a complier warning in files/backup.c +- Cleanup NOT NULL vs DEFALT 0 in database creation. +- Tweak btape. - Robert committed his low impact changes. - I removed a size_t from the jcr.h definition. - Update the tape regression scripts (still to be tested). @@ -44,7 +47,11 @@ General: using uint8_t * instead. - Harden authentication failure in FD by single threading errors and forcing a 6 second wait. -- ========= Remove Accept Any Volume ========= directive. + + ============= Warning ================================== + Removed "Accept Any Volume" directive. + =========================================================== + - Major cleanup and simplification of regress using shell functions (more tests to be converted to new format) - Add detection of 64 bit Irix as indicated by user. diff --git a/bacula/src/cats/drop_postgresql_tables.in b/bacula/src/cats/drop_postgresql_tables.in index 0d14bda04e..f59669e6f1 100644 --- a/bacula/src/cats/drop_postgresql_tables.in +++ b/bacula/src/cats/drop_postgresql_tables.in @@ -4,7 +4,7 @@ bindir=@SQL_BINDIR@ -if $bindir/psql -f - -d bacula $* <stored:header %s\n", sd->msg); /* Grow the bsock buffer to fit our message if necessary */ - if (sizeof_pool_memory(sd->msg) < size) { + if (sizeof_pool_memory(sd->msg) < (int32_t)size) { sd->msg = realloc_pool_memory(sd->msg, size); } diff --git a/bacula/src/stored/btape.c b/bacula/src/stored/btape.c index 4575531848..0198ed0687 100644 --- a/bacula/src/stored/btape.c +++ b/bacula/src/stored/btape.c @@ -96,6 +96,7 @@ static char *argv[MAX_CMD_ARGS]; static int argc; static int quickie_count = 0; +static uint64_t write_count = 0; static BSR *bsr = NULL; static int signals = TRUE; static bool ok; @@ -1958,7 +1959,9 @@ static void fillcmd() /* Get out after writing 10 blocks to the second tape */ if (BlockNumber > 10 && stop != 0) { /* get out */ - Pmsg0(-1, "Done writing ...\n"); + char ed1[50]; + Pmsg1(-1, "Done writing %s records ...\n", + edit_uint64_with_commas(write_count, ed1)); break; } } @@ -2108,17 +2111,18 @@ static void do_unfill() dev->close(); get_cmd(_("Mount first tape. Press enter when ready: ")); } - free_restore_volume_list(jcr); - jcr->dcr = new_dcr(jcr, dev); - set_volume_name("TestVolume1", 1); - jcr->bsr = NULL; - create_restore_volume_list(jcr); - dev->close(); - dev->num_writers = 0; - if (!acquire_device_for_read(dcr)) { - Pmsg1(-1, "%s", dev->errmsg); - goto bail_out; - } + } + + free_restore_volume_list(jcr); + jcr->dcr = new_dcr(jcr, dev); + set_volume_name("TestVolume1", 1); + jcr->bsr = NULL; + create_restore_volume_list(jcr); + dev->close(); + dev->num_writers = 0; + if (!acquire_device_for_read(dcr)) { + Pmsg1(-1, "%s", dev->errmsg); + goto bail_out; } /* * We now have the first tape mounted. @@ -2722,7 +2726,8 @@ static bool my_mount_next_read_volume(DCR *dcr) DEV_BLOCK *block = dcr->block; Dmsg0(20, "Enter my_mount_next_read_volume\n"); - Pmsg1(000, _("End of Volume \"%s\"\n"), dcr->VolumeName); + Pmsg2(000, _("End of Volume \"%s\" %d records.\n"), dcr->VolumeName, + quickie_count); if (LastBlock != block->BlockNumber) { VolBytes += block->block_len;