]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
11 years agoCheck if resource name is valid in acl_access_ok()
Eric Bollengier [Mon, 7 Feb 2011 17:15:57 +0000 (18:15 +0100)]
Check if resource name is valid in acl_access_ok()

11 years agoAvoid extra strlen() in is_name_valid()
Eric Bollengier [Mon, 7 Feb 2011 16:49:50 +0000 (17:49 +0100)]
Avoid extra strlen() in is_name_valid()

11 years agoregress: fix setup with new MAKEOPT argument
Eric Bollengier [Mon, 7 Feb 2011 16:55:41 +0000 (17:55 +0100)]
regress: fix setup with new MAKEOPT argument

make "" gives me:
make: *** empty string invalid as file name.  Stop.

11 years agoregress: tweak prune-migration-test
Eric Bollengier [Mon, 7 Feb 2011 15:04:41 +0000 (16:04 +0100)]
regress: tweak prune-migration-test

11 years agoregress: Add more debug in prune-migration-test
Eric Bollengier [Mon, 7 Feb 2011 15:03:12 +0000 (16:03 +0100)]
regress: Add more debug in prune-migration-test

11 years agoAdd negative numbers to bsscanf
Kern Sibbald [Mon, 7 Feb 2011 14:01:09 +0000 (15:01 +0100)]
Add negative numbers to bsscanf

11 years agoApply get_basename to printed filenames to reduce unnecessarily long paths
Kern Sibbald [Mon, 7 Feb 2011 09:18:07 +0000 (10:18 +0100)]
Apply get_basename to printed filenames to reduce unnecessarily long paths

11 years agoFix typo
Marco van Wieringen [Sun, 6 Feb 2011 19:58:04 +0000 (20:58 +0100)]
Fix typo

11 years agoTweak layout and remove double cats.h include.
Marco van Wieringen [Sun, 6 Feb 2011 18:59:43 +0000 (19:59 +0100)]
Tweak layout and remove double cats.h include.

11 years agoAdd MAKEOPT to conf for regression
Kern Sibbald [Sun, 6 Feb 2011 17:07:43 +0000 (18:07 +0100)]
Add MAKEOPT to conf for regression

11 years agoFix double query in db_list_basefiles()
Eric Bollengier [Sun, 6 Feb 2011 10:46:17 +0000 (11:46 +0100)]
Fix double query in db_list_basefiles()

11 years agoFix chgrp on bacula-x.conf
Eric Bollengier [Sun, 6 Feb 2011 08:36:57 +0000 (09:36 +0100)]
Fix chgrp on bacula-x.conf

11 years agoAllow using sql_fetch_field() in db_sql_query() callback for SQLite
Eric Bollengier [Sun, 6 Feb 2011 08:21:44 +0000 (09:21 +0100)]
Allow using sql_fetch_field() in db_sql_query() callback for SQLite

11 years agoUse old list_result() in db_list_xxx for good formating
Eric Bollengier [Sat, 5 Feb 2011 19:40:32 +0000 (20:40 +0100)]
Use old list_result() in db_list_xxx for good formating

11 years agoIncrease Windows backup/restore privileges possible fix to Virtual Disk ticket
Kern Sibbald [Fri, 4 Feb 2011 16:05:20 +0000 (17:05 +0100)]
Increase Windows backup/restore privileges possible fix to Virtual Disk ticket

11 years agoUse db_escape_string() in all db_xxx functions
Eric Bollengier [Sat, 5 Feb 2011 10:30:39 +0000 (11:30 +0100)]
Use db_escape_string() in all db_xxx functions

11 years agoPull src/lib/Makefile.in from master
Kern Sibbald [Sat, 5 Feb 2011 13:28:22 +0000 (14:28 +0100)]
Pull src/lib/Makefile.in from master

11 years agoAdd configure magic for detecting getpagesize
Marco van Wieringen [Thu, 3 Feb 2011 20:25:19 +0000 (21:25 +0100)]
Add configure magic for detecting getpagesize

11 years agoImplement mntent_cache on top of the new htable code using a small htable big buffer...
Marco van Wieringen [Thu, 3 Feb 2011 20:07:38 +0000 (21:07 +0100)]
Implement mntent_cache on top of the new htable code using a small htable big buffer of 128 Kb to start with.

11 years agoAdded support to htable for giving a hint on the number of pages to allocate for...
Marco van Wieringen [Thu, 3 Feb 2011 19:56:41 +0000 (20:56 +0100)]
Added support to htable for giving a hint on the number of pages to allocate for the buffer used for hash_mallocs so we can have htables without the previous default of 10 Mb.

11 years agoImplement chgrp on bacula-x.conf if user configs a Dir/SD/FD group
Kern Sibbald [Sat, 5 Feb 2011 13:08:20 +0000 (14:08 +0100)]
Implement chgrp on bacula-x.conf if user configs a Dir/SD/FD group

11 years agoRebuild configure
Kern Sibbald [Sat, 5 Feb 2011 12:22:21 +0000 (13:22 +0100)]
Rebuild configure

11 years agoRemove old scripts no longer used
Kern Sibbald [Sat, 5 Feb 2011 12:18:53 +0000 (13:18 +0100)]
Remove old scripts no longer used

11 years agoAdd patch from bug #1574 for Scientific Linux spec
Kern Sibbald [Sat, 5 Feb 2011 11:57:15 +0000 (12:57 +0100)]
Add patch from bug #1574 for Scientific Linux spec

11 years agoApply patches from bug #1672 to clean up configuration
Kern Sibbald [Sat, 5 Feb 2011 11:28:46 +0000 (12:28 +0100)]
Apply patches from bug #1672 to clean up configuration

11 years agoTweak select_media_dbr()
Eric Bollengier [Sat, 5 Feb 2011 11:01:07 +0000 (12:01 +0100)]
Tweak select_media_dbr()

11 years agoCheck if volume name is valid in select_media_dbr()
Eric Bollengier [Sat, 5 Feb 2011 09:55:45 +0000 (10:55 +0100)]
Check if volume name is valid in select_media_dbr()

11 years agoSmall change to exporting functions not found in include files
Marco van Wieringen [Sat, 5 Feb 2011 00:07:47 +0000 (01:07 +0100)]
Small change to exporting functions not found in include files
on some platforms. Wrap it as one extern "C" block just like its
done on most platforms in the proper include files.

11 years agoFixed some compile errors in IRIX and TRU64 xattr code which is kind of
Marco van Wieringen [Sat, 5 Feb 2011 00:05:36 +0000 (01:05 +0100)]
Fixed some compile errors in IRIX and TRU64 xattr code which is kind of
hard to test without a proper platform. Compiled it now using some
tricks on an other platform defining it is the given platform and
fix the compile errors that way using a fake header file.

11 years agoTweak remove last reference to __SQL_C which is not needed anymore.
Marco van Wieringen [Fri, 4 Feb 2011 20:53:57 +0000 (21:53 +0100)]
Tweak remove last reference to __SQL_C which is not needed anymore.

11 years agoImprove bat stability by checking if page valid
Kern Sibbald [Fri, 4 Feb 2011 15:20:15 +0000 (16:20 +0100)]
Improve bat stability by checking if page valid

11 years agoFix segfault with print_memory_pool_stats()
Eric Bollengier [Fri, 4 Feb 2011 08:50:13 +0000 (09:50 +0100)]
Fix segfault with print_memory_pool_stats()

11 years agoDrop last SQL_INC leftovers. Due to backend abstraction there is no
Marco van Wieringen [Fri, 4 Feb 2011 08:46:51 +0000 (09:46 +0100)]
Drop last SQL_INC leftovers. Due to backend abstraction there is no
need to include backend specific include files anywhere then in
the backend driver which use now per backend specific include
directives. SQL_INC is not set by configure anymore and should
not be used anymore.

11 years agoRemove reference to @SQL_INC@ in tools Makefile.in
Kern Sibbald [Thu, 3 Feb 2011 21:10:01 +0000 (22:10 +0100)]
Remove reference to @SQL_INC@ in tools Makefile.in

11 years agoPull in lib.h from master so new htable code compiles
Kern Sibbald [Thu, 3 Feb 2011 16:42:30 +0000 (17:42 +0100)]
Pull in lib.h from master so new htable code compiles

11 years agoTweak date + version
Kern Sibbald [Thu, 3 Feb 2011 16:39:27 +0000 (17:39 +0100)]
Tweak date + version

11 years agoTweak .gitignores
Kern Sibbald [Thu, 3 Feb 2011 16:37:12 +0000 (17:37 +0100)]
Tweak .gitignores

11 years agoUse C99 __VA_ARGS__ instead of GCC extention ##__VA_ARGS__
Eric Bollengier [Thu, 3 Feb 2011 14:11:04 +0000 (15:11 +0100)]
Use C99 __VA_ARGS__ instead of GCC extention ##__VA_ARGS__

11 years agoAdapt bvfs for SQLite3
Eric Bollengier [Thu, 3 Feb 2011 13:38:06 +0000 (14:38 +0100)]
Adapt bvfs for SQLite3

11 years agoAdapt htable code to 64 bit keys
Kern Sibbald [Thu, 3 Feb 2011 12:45:51 +0000 (13:45 +0100)]
Adapt htable code to 64 bit keys

11 years agoRename db_list_ctx.cat() to db_list_ctx.add()
Eric Bollengier [Thu, 3 Feb 2011 12:00:59 +0000 (13:00 +0100)]
Rename db_list_ctx.cat() to db_list_ctx.add()

11 years agoFix bvfs for mysql
Eric Bollengier [Thu, 3 Feb 2011 12:00:37 +0000 (13:00 +0100)]
Fix bvfs for mysql

11 years agoAdd simple way to add string elements to db_list_ctx
Eric Bollengier [Tue, 1 Feb 2011 13:54:51 +0000 (14:54 +0100)]
Add simple way to add string elements to db_list_ctx

11 years agoTweak rebuild configure
Kern Sibbald [Thu, 3 Feb 2011 11:05:24 +0000 (12:05 +0100)]
Tweak rebuild configure

11 years agoAdd code to trim heap after big mallocs
Kern Sibbald [Thu, 3 Feb 2011 10:44:35 +0000 (11:44 +0100)]
Add code to trim heap after big mallocs

11 years agoClose cursor in big sql query
Eric Bollengier [Tue, 1 Feb 2011 12:39:40 +0000 (13:39 +0100)]
Close cursor in big sql query

11 years agoFix bad character in cats/sql_cmds.c
Kern Sibbald [Sun, 30 Jan 2011 16:08:49 +0000 (17:08 +0100)]
Fix bad character in cats/sql_cmds.c

11 years agoRemoved old queries from sql_cmds.[ch] which are no longer referenced
Marco van Wieringen [Mon, 31 Jan 2011 20:56:16 +0000 (21:56 +0100)]
Removed old queries from sql_cmds.[ch] which are no longer referenced
and thus polluting the namespace for no obvious reason.

11 years agoFix possible core-dump as seen in regression testing
Marco van Wieringen [Mon, 31 Jan 2011 12:35:18 +0000 (13:35 +0100)]
Fix possible core-dump as seen in regression testing

Thread 2 (Thread 1132489024 (LWP 21031)):
lockmgr.c:939

Dereference jcr->db after release of jcr will lead to disaster.

11 years agoregress: tweak timing in prune-copy-test
Eric Bollengier [Tue, 1 Feb 2011 10:43:00 +0000 (11:43 +0100)]
regress: tweak timing in prune-copy-test

11 years agoTweak ident some queries
Eric Bollengier [Fri, 28 Jan 2011 14:52:36 +0000 (15:52 +0100)]
Tweak ident some queries

11 years agoEnsure that we always close the transaction in db_big_sql_query()
Eric Bollengier [Fri, 28 Jan 2011 14:00:46 +0000 (15:00 +0100)]
Ensure that we always close the transaction in db_big_sql_query()

11 years agoImplement db_big_sql_query() that uses cursor on PostgreSQL and limit memory usage...
Eric Bollengier [Fri, 28 Jan 2011 13:41:55 +0000 (14:41 +0100)]
Implement db_big_sql_query() that uses cursor on PostgreSQL and limit memory usage in db_list_xxx

By default on PostgreSQL, db_sql_query() stores the query results in
memory, it can take lots of resources when dealing with job output,
accurate or restore.  This new mode uses cursors and fetches results
100 by 100.

db_list_xxx functions doesn't store the entire query result anymore.
Commands like "list joblog" or "list files" are now stable in memory
usage. (for MySQL and PostgreSQL)

11 years agoDetect mount/junction points and ignore junctions in Windows
Eric Bollengier [Fri, 28 Jan 2011 09:50:31 +0000 (10:50 +0100)]
Detect mount/junction points and ignore junctions in Windows

11 years agoTweak rebuild configure
Kern Sibbald [Wed, 26 Jan 2011 21:41:22 +0000 (22:41 +0100)]
Tweak rebuild configure

11 years agoUpdate version and date
Kern Sibbald [Wed, 26 Jan 2011 21:40:53 +0000 (22:40 +0100)]
Update version and date

11 years agoTweak regress .conf file
Kern Sibbald [Wed, 26 Jan 2011 21:40:02 +0000 (22:40 +0100)]
Tweak regress .conf file

11 years agoAdded set_db_type function to set global debug symbol removed when
Marco van Wieringen [Tue, 25 Jan 2011 20:24:38 +0000 (21:24 +0100)]
Added set_db_type function to set global debug symbol removed when
doing class based catalog backends. Coding is a bit different
as we need get_db_type which needs a bdb class so we have to
set it as part of the loop over all catalogs. This way we may
set the global variable a couple of times but the code frees
the global variable if needed so other then being somewhat overkill
no harm is done.

11 years agoFix typo
Marco van Wieringen [Tue, 25 Jan 2011 18:27:08 +0000 (19:27 +0100)]
Fix typo

11 years agoDrop removed catalog function prototype.
Marco van Wieringen [Tue, 25 Jan 2011 18:17:18 +0000 (19:17 +0100)]
Drop removed catalog function prototype.

11 years agoFix logic inversion.
Marco van Wieringen [Tue, 25 Jan 2011 18:12:32 +0000 (19:12 +0100)]
Fix logic inversion.

11 years agoupdate configure
Eric Bollengier [Tue, 25 Jan 2011 15:23:43 +0000 (16:23 +0100)]
update configure

11 years agoAdd more ingres code
Eric Bollengier [Tue, 25 Jan 2011 15:21:35 +0000 (16:21 +0100)]
Add more ingres code

11 years agoAdapt bbatch and cats_test tool to new cats
Eric Bollengier [Tue, 25 Jan 2011 14:19:16 +0000 (15:19 +0100)]
Adapt bbatch and cats_test tool to new cats

11 years agoBackport changes for Windows compiling
Marco van Wieringen [Tue, 18 Jan 2011 13:46:29 +0000 (14:46 +0100)]
Backport changes for Windows compiling

11 years agoBackport one more patch into master from class based catalog backend code.
Marco van Wieringen [Tue, 18 Jan 2011 13:25:32 +0000 (14:25 +0100)]
Backport one more patch into master from class based catalog backend code.

11 years agoBackport of class based catalog backends into Branch-5.1.
Marco van Wieringen [Tue, 18 Jan 2011 13:10:14 +0000 (14:10 +0100)]
Backport of class based catalog backends into Branch-5.1.

11 years agoTweak add beefsteak files
Kern Sibbald [Tue, 25 Jan 2011 11:13:27 +0000 (12:13 +0100)]
Tweak add beefsteak files

11 years agoTweak Makefile for cats_test
Eric Bollengier [Tue, 25 Jan 2011 08:46:08 +0000 (09:46 +0100)]
Tweak Makefile for cats_test

11 years agoFix #1684 Use --with-db-password option in grant_bacula_privileges scripts
Eric Bollengier [Tue, 25 Jan 2011 08:34:23 +0000 (09:34 +0100)]
Fix #1684 Use --with-db-password option in grant_bacula_privileges scripts

11 years agoTweak up build concurrency
Kern Sibbald [Mon, 24 Jan 2011 19:48:06 +0000 (20:48 +0100)]
Tweak up build concurrency

11 years agoTweak update date and version
Kern Sibbald [Mon, 24 Jan 2011 19:31:35 +0000 (20:31 +0100)]
Tweak update date and version

11 years agoTweak bacula-ctl scripts for valgrind
Kern Sibbald [Sat, 22 Jan 2011 17:00:06 +0000 (18:00 +0100)]
Tweak bacula-ctl scripts for valgrind

11 years agoTweak tree.c debugging
Kern Sibbald [Sat, 22 Jan 2011 19:29:56 +0000 (20:29 +0100)]
Tweak tree.c debugging

11 years agoFree unused pool memory after restore
Kern Sibbald [Sun, 23 Jan 2011 11:01:49 +0000 (12:01 +0100)]
Free unused pool memory after restore

11 years agoAdd pool memory debug output
Kern Sibbald [Sun, 23 Jan 2011 11:02:04 +0000 (12:02 +0100)]
Add pool memory debug output

11 years agoFix build of Windows bat -- Qt depends on libgcc_s_dw2-1.dll
Kern Sibbald [Thu, 13 Jan 2011 19:14:32 +0000 (20:14 +0100)]
Fix build of Windows bat -- Qt depends on libgcc_s_dw2-1.dll

11 years agoFix typo in buffer sizes off by factor of 10
Kern Sibbald [Mon, 24 Jan 2011 16:53:40 +0000 (17:53 +0100)]
Fix typo in buffer sizes off by factor of 10

11 years agoChange accurate CurFile allocation size
Eric Bollengier [Sun, 23 Jan 2011 16:23:13 +0000 (17:23 +0100)]
Change accurate CurFile allocation size

The given length counts already the 3 \0

11 years agoTweak accurate code to avoid useless memcpy()
Eric Bollengier [Sun, 23 Jan 2011 16:01:33 +0000 (17:01 +0100)]
Tweak accurate code to avoid useless memcpy()

11 years agoregress: tweak speed-test
Eric Bollengier [Sat, 22 Jan 2011 15:02:28 +0000 (16:02 +0100)]
regress: tweak speed-test

11 years agoAdd more tests on cats_test
Eric Bollengier [Wed, 19 Jan 2011 18:16:23 +0000 (19:16 +0100)]
Add more tests on cats_test

11 years agoAdd cats_test unit tests
Eric Bollengier [Wed, 19 Jan 2011 17:25:10 +0000 (18:25 +0100)]
Add cats_test unit tests

11 years agoTweak TODO
Eric Bollengier [Wed, 19 Jan 2011 17:24:42 +0000 (18:24 +0100)]
Tweak TODO

11 years agoFix typo in maxtime-test
Kern Sibbald [Tue, 18 Jan 2011 17:05:59 +0000 (18:05 +0100)]
Fix typo in maxtime-test

11 years agoregress: fix maxtime-test
Eric Bollengier [Tue, 18 Jan 2011 16:24:48 +0000 (17:24 +0100)]
regress: fix maxtime-test

11 years agoFix #1685 about JobBytes counter when using Accurate/BaseJobs with checksum
Eric Bollengier [Sat, 15 Jan 2011 14:21:35 +0000 (15:21 +0100)]
Fix #1685 about JobBytes counter when using Accurate/BaseJobs with checksum

11 years agoregress: test script with spaces
Eric Bollengier [Tue, 11 Jan 2011 14:32:41 +0000 (15:32 +0100)]
regress: test script with spaces

11 years agoIgnore replace=xx for directories. Corrects (not total solution) ticket 2317 and...
Kern Sibbald [Wed, 12 Jan 2011 17:49:37 +0000 (18:49 +0100)]
Ignore replace=xx for directories. Corrects (not total solution) ticket 2317 and bug #1444

11 years agoAdd restore replace=never test ticket 2317
Kern Sibbald [Wed, 12 Jan 2011 14:14:08 +0000 (15:14 +0100)]
Add restore replace=never test ticket 2317

11 years agoAdd replace=xxx on restore command line
Kern Sibbald [Wed, 12 Jan 2011 14:13:16 +0000 (15:13 +0100)]
Add replace=xxx on restore command line

11 years agoAdd restore_job= option to restore command
Eric Bollengier [Mon, 10 Jan 2011 15:24:58 +0000 (16:24 +0100)]
Add restore_job= option to restore command

11 years agoTweak Windows tray monitor build
Kern Sibbald [Sat, 8 Jan 2011 18:37:15 +0000 (19:37 +0100)]
Tweak Windows tray monitor build

11 years agoTweak qt-console .pro.in files
Kern Sibbald [Fri, 7 Jan 2011 20:42:39 +0000 (21:42 +0100)]
Tweak qt-console .pro.in files

11 years agoTweak date format in tray monitor
Eric Bollengier [Fri, 7 Jan 2011 17:40:35 +0000 (18:40 +0100)]
Tweak date format in tray monitor

11 years agoAdd windows tray monitor to bat make-win32 script
Eric Bollengier [Thu, 6 Jan 2011 17:39:56 +0000 (18:39 +0100)]
Add windows tray monitor to bat make-win32 script

11 years agoAdapt traymonitor qmake project file for win32
Eric Bollengier [Thu, 6 Jan 2011 17:36:33 +0000 (18:36 +0100)]
Adapt traymonitor qmake project file for win32

11 years agoAdd cross-win32 target to qmake template
Eric Bollengier [Thu, 6 Jan 2011 17:33:55 +0000 (18:33 +0100)]
Add cross-win32 target to qmake template

11 years agoAdd new QT traymonitor
Eric Bollengier [Thu, 6 Jan 2011 15:54:34 +0000 (16:54 +0100)]
Add new QT traymonitor

11 years agoAdd qt traymonitor files to configure.in
Eric Bollengier [Thu, 6 Jan 2011 15:40:53 +0000 (16:40 +0100)]
Add qt traymonitor files to configure.in