]> git.sur5r.net Git - bacula/bacula/log
bacula/bacula
14 years agoStart adding plugin regex filesets
Kern Sibbald [Sun, 18 Apr 2010 05:35:11 +0000 (07:35 +0200)]
Start adding plugin regex filesets

14 years agoReorganize regex code
Kern Sibbald [Sat, 17 Apr 2010 12:37:38 +0000 (14:37 +0200)]
Reorganize regex code

14 years agoRewind on close to fix #1549
Eric Bollengier [Sun, 18 Apr 2010 10:28:19 +0000 (12:28 +0200)]
Rewind on close to fix #1549

14 years agoAdd bVarWorkingDir to filed plugins
James Harper [Sun, 18 Apr 2010 06:36:48 +0000 (08:36 +0200)]
Add bVarWorkingDir to filed plugins

14 years agoUpdate Ingres temporary table definitions with new datatypes and lengths.
Marco van Wieringen [Sat, 17 Apr 2010 20:34:21 +0000 (22:34 +0200)]
Update Ingres temporary table definitions with new datatypes and lengths.

14 years agoAdded extra check to scream when we encounter a database datatype which we don't...
Marco van Wieringen [Sat, 17 Apr 2010 19:11:07 +0000 (21:11 +0200)]
Added extra check to scream when we encounter a database datatype which we don't support yet. This should never happen as we should implement new datatypes when we use them in the schema but some defensive programming doesn't hurt.

14 years agoSome small indent changes.
Marco van Wieringen [Sat, 17 Apr 2010 15:56:59 +0000 (17:56 +0200)]
Some small indent changes.

14 years agoPossible fix for big-files-test
Kern Sibbald [Sat, 17 Apr 2010 13:38:37 +0000 (15:38 +0200)]
Possible fix for big-files-test

14 years agoUse a dedicated connexion when VirtualFull computes the file list.
Eric Bollengier [Sat, 17 Apr 2010 12:29:02 +0000 (14:29 +0200)]
Use a dedicated connexion when VirtualFull computes the file list.

14 years agoAdd back line accidentally deleted -- fixes verify-vol tests
Kern Sibbald [Sat, 17 Apr 2010 12:03:44 +0000 (14:03 +0200)]
Add back line accidentally deleted -- fixes verify-vol tests

14 years agoRemove inappropriate comments and unused line
Kern Sibbald [Sat, 17 Apr 2010 12:02:56 +0000 (14:02 +0200)]
Remove inappropriate comments and unused line

14 years agoFix badly named index
Kern Sibbald [Sat, 17 Apr 2010 12:02:20 +0000 (14:02 +0200)]
Fix badly named index

14 years agoFirst stab at rewriting the ingres database schema to allow bigger path and filenames...
Marco van Wieringen [Sat, 17 Apr 2010 08:12:13 +0000 (10:12 +0200)]
First stab at rewriting the ingres database schema to allow bigger path and filenames up to the current limit of 32000 bytes. Also reindented the database definitions to the Bacula standards which make it somewhat easier to read. Implemented the retrieval of some additional datatypes in the ingres backend now we switched some types from VARCHAR to VARBYTE.

14 years agoTweak new restore object code
Kern Sibbald [Fri, 16 Apr 2010 18:56:14 +0000 (20:56 +0200)]
Tweak new restore object code

14 years agoRemove closelog() in bpipe fixes bug #1536
Kern Sibbald [Fri, 16 Apr 2010 18:37:16 +0000 (20:37 +0200)]
Remove closelog() in bpipe fixes bug #1536

14 years agoConvert restore object to use STREAM_RESTORE_OBJECT; cleaner code
Kern Sibbald [Fri, 16 Apr 2010 18:15:15 +0000 (20:15 +0200)]
Convert restore object to use STREAM_RESTORE_OBJECT; cleaner code

14 years agoFor now the Ingres type is not TEXT but VARCHAR(256) so lets define the temporary...
Marco van Wieringen [Fri, 16 Apr 2010 08:39:44 +0000 (10:39 +0200)]
For now the Ingres type is not TEXT but VARCHAR(256) so lets define the temporary table that way.

14 years agoSeperate some basejob queries into sql_cmds.c so the code is cleaner and we can speci...
Marco van Wieringen [Fri, 16 Apr 2010 08:07:09 +0000 (10:07 +0200)]
Seperate some basejob queries into sql_cmds.c so the code is cleaner and we can specify the Ingres specific definition of a temporary table.

14 years agoRemove some strange includes halve way this file which seems to be some copied code...
Marco van Wieringen [Fri, 16 Apr 2010 07:29:45 +0000 (09:29 +0200)]
Remove some strange includes halve way this file which seems to be some copied code from the top of the file.

14 years agoFix RestoreObject make_sqlite3_table.in syntax
Kern Sibbald [Fri, 16 Apr 2010 06:35:09 +0000 (08:35 +0200)]
Fix RestoreObject make_sqlite3_table.in syntax

14 years agoDISTINCT ON postgresql queries won't work on Ingres so try if the MySQL queries do...
Marco van Wieringen [Thu, 15 Apr 2010 20:40:26 +0000 (22:40 +0200)]
DISTINCT ON postgresql queries won't work on Ingres so try if the MySQL queries do any better on Ingres.

14 years agoSmall changes to btraceback script so on solaris we don't get strange errors as PNAME...
Marco van Wieringen [Thu, 15 Apr 2010 18:57:23 +0000 (20:57 +0200)]
Small changes to btraceback script so on solaris we don't get strange errors as PNAME is not a single binary name and that doesn't work to great for doing a gcore.

14 years agoAdd install and uninstall of btraceback.mdb script
Marco van Wieringen [Thu, 15 Apr 2010 18:50:47 +0000 (20:50 +0200)]
Add install and uninstall of btraceback.mdb script

14 years agoRemove bad index tips on mysql creation script
Eric Bollengier [Wed, 14 Apr 2010 09:39:48 +0000 (11:39 +0200)]
Remove bad index tips on mysql creation script

14 years agoApply James' patch with my restore object changes
Kern Sibbald [Wed, 14 Apr 2010 13:24:50 +0000 (15:24 +0200)]
Apply James' patch with my restore object changes

14 years agoTweak comments + indenting
Kern Sibbald [Wed, 14 Apr 2010 11:04:59 +0000 (13:04 +0200)]
Tweak comments + indenting

14 years agoAdd vss_close_backup_session after find_files + add object_name to restore object
Kern Sibbald [Wed, 14 Apr 2010 10:44:43 +0000 (12:44 +0200)]
Add vss_close_backup_session after find_files + add object_name to restore object

14 years agoCleanup restore_object packet
Kern Sibbald [Wed, 14 Apr 2010 08:40:16 +0000 (10:40 +0200)]
Cleanup restore_object packet

14 years agoFix typos.
Marco van Wieringen [Tue, 13 Apr 2010 18:57:42 +0000 (20:57 +0200)]
Fix typos.

14 years agoIngres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritte...
Marco van Wieringen [Tue, 13 Apr 2010 17:48:46 +0000 (19:48 +0200)]
Ingres doesn't understand a query string with ORDER BY LastWritten IS NULL,LastWritten DESC,MediaId and we must rewrite it to ORDER BY IFNULL(LastWritten, '') DESC,MediaId which we now do by using an array with the correct order statement per backend in sql_cmds just as some of the other database specific queries.

14 years agoAdd missing break. Pointed out by James
Kern Sibbald [Mon, 12 Apr 2010 12:55:18 +0000 (08:55 -0400)]
Add missing break. Pointed out by James

14 years agoPass restore object to plugin
Kern Sibbald [Sun, 11 Apr 2010 18:59:02 +0000 (20:59 +0200)]
Pass restore object to plugin

14 years agoRestore object now sent to FD
Kern Sibbald [Sun, 11 Apr 2010 15:24:52 +0000 (17:24 +0200)]
Restore object now sent to FD

14 years agoTweak rebuild configure
Kern Sibbald [Sun, 11 Apr 2010 07:38:21 +0000 (09:38 +0200)]
Tweak rebuild configure

14 years agoDrop old bdb catalog scripts
Kern Sibbald [Sun, 11 Apr 2010 07:37:28 +0000 (09:37 +0200)]
Drop old bdb catalog scripts

14 years agoTweak remove trailing space add doxygen doc marks
Kern Sibbald [Sun, 11 Apr 2010 07:20:44 +0000 (09:20 +0200)]
Tweak remove trailing space add doxygen doc marks

14 years agoExtract restore object and send to FD first cut
Kern Sibbald [Sat, 10 Apr 2010 20:45:39 +0000 (22:45 +0200)]
Extract restore object and send to FD first cut

14 years agoAdd Ingres RestoreObject SQL changes
Kern Sibbald [Sat, 10 Apr 2010 20:51:49 +0000 (22:51 +0200)]
Add Ingres RestoreObject SQL changes

14 years agoFix typo in sqlite
Marco van Wieringen [Sat, 10 Apr 2010 11:42:07 +0000 (13:42 +0200)]
Fix typo in sqlite

14 years agoRename sql_insert_id into sql_insert_autokey_record so things are somewhat cleaner...
Marco van Wieringen [Sat, 10 Apr 2010 11:36:25 +0000 (13:36 +0200)]
Rename sql_insert_id into sql_insert_autokey_record so things are somewhat cleaner in name and things don't seem to imply we are just a mysql_insert_id replacement, which we are not.

14 years agoTurn off plugin debug
Kern Sibbald [Fri, 9 Apr 2010 19:52:25 +0000 (21:52 +0200)]
Turn off plugin debug

14 years agoCreate and put data into RestoreObject table
Kern Sibbald [Fri, 9 Apr 2010 19:38:59 +0000 (21:38 +0200)]
Create and put data into RestoreObject table

14 years agoCreate db_create_restore_object_record and code to insert it
Kern Sibbald [Fri, 9 Apr 2010 15:36:39 +0000 (17:36 +0200)]
Create db_create_restore_object_record and code to insert it

14 years agoDrop all Ingres tables with one commit.
Marco van Wieringen [Fri, 9 Apr 2010 12:02:41 +0000 (14:02 +0200)]
Drop all Ingres tables with one commit.

14 years agoFix Win32 build
Kern Sibbald [Fri, 9 Apr 2010 09:28:48 +0000 (11:28 +0200)]
Fix Win32 build

14 years agoTweak update version + date
Kern Sibbald [Fri, 9 Apr 2010 09:19:32 +0000 (11:19 +0200)]
Tweak update version + date

14 years agoSet level for debug code
Kern Sibbald [Fri, 9 Apr 2010 09:17:45 +0000 (11:17 +0200)]
Set level for debug code

14 years agoMake build and install of test-plugin for regress automatic
Kern Sibbald [Thu, 8 Apr 2010 19:09:57 +0000 (21:09 +0200)]
Make build and install of test-plugin for regress automatic

14 years agoTemp remvoe add exclude
Kern Sibbald [Thu, 8 Apr 2010 13:09:35 +0000 (15:09 +0200)]
Temp remvoe add exclude

14 years agoFirst attempt to fix plugin excludes
Kern Sibbald [Wed, 7 Apr 2010 20:11:54 +0000 (22:11 +0200)]
First attempt to fix plugin excludes

14 years agoGet binary objects working
Kern Sibbald [Wed, 7 Apr 2010 19:26:25 +0000 (21:26 +0200)]
Get binary objects working

14 years agoMake test-plugin regression test work
Kern Sibbald [Wed, 7 Apr 2010 19:25:45 +0000 (21:25 +0200)]
Make test-plugin regression test work

14 years agoMake test-plugin-test script
Kern Sibbald [Wed, 7 Apr 2010 13:03:14 +0000 (15:03 +0200)]
Make test-plugin-test script

14 years agoCreate test-plugin-fd
Kern Sibbald [Wed, 7 Apr 2010 12:55:53 +0000 (14:55 +0200)]
Create test-plugin-fd

14 years agoStuff object in extended attributes
Kern Sibbald [Wed, 7 Apr 2010 12:04:53 +0000 (14:04 +0200)]
Stuff object in extended attributes

14 years agoAdd FT_RESTORE and first cut handling it
Kern Sibbald [Wed, 7 Apr 2010 09:32:12 +0000 (11:32 +0200)]
Add FT_RESTORE and first cut handling it

14 years agoTweak fd_plugins.c
Kern Sibbald [Tue, 6 Apr 2010 20:32:52 +0000 (22:32 +0200)]
Tweak fd_plugins.c

14 years agoAdd more doc to example-plugin
Kern Sibbald [Tue, 6 Apr 2010 17:24:09 +0000 (19:24 +0200)]
Add more doc to example-plugin

14 years agoStart RESTORE_OBJECT code
Kern Sibbald [Mon, 5 Apr 2010 20:51:30 +0000 (22:51 +0200)]
Start RESTORE_OBJECT code

14 years agoFixed postgresql grant script which I seem to have updated while I thought I updated...
Marco van Wieringen [Thu, 8 Apr 2010 16:55:04 +0000 (18:55 +0200)]
Fixed postgresql grant script which I seem to have updated while I thought I updated the Ingres one. Also added a missing entry as reported by Martin Simmons.

14 years agoFirst attempt at using mdb on Solaris instead of dbx which isn't standard on most...
Marco van Wieringen [Thu, 8 Apr 2010 16:50:51 +0000 (18:50 +0200)]
First attempt at using mdb on Solaris instead of dbx which isn't standard on most current Solaris versions.

14 years agofix grant_postgresql_privileges doesn t grant permissions on jobhisto_jobid_seq
Eric Bollengier [Thu, 8 Apr 2010 16:48:43 +0000 (18:48 +0200)]
fix grant_postgresql_privileges doesn t grant permissions on jobhisto_jobid_seq

14 years agoAdd back something that for whatever reason got lost on last big merge.
Marco van Wieringen [Thu, 8 Apr 2010 05:30:27 +0000 (07:30 +0200)]
Add back something that for whatever reason got lost on last big merge.

14 years agoFix stupid inverted logic
Marco van Wieringen [Wed, 7 Apr 2010 18:08:43 +0000 (20:08 +0200)]
Fix stupid inverted logic

14 years agoMake the batch insert functions return bool instead of int.
Marco van Wieringen [Wed, 7 Apr 2010 14:31:58 +0000 (16:31 +0200)]
Make the batch insert functions return bool instead of int.

14 years agotweak def file
Eric Bollengier [Wed, 7 Apr 2010 09:28:41 +0000 (11:28 +0200)]
tweak def file

14 years agoAdd lock position info to volume manager
Eric Bollengier [Wed, 7 Apr 2010 09:18:53 +0000 (11:18 +0200)]
Add lock position info to volume manager

14 years agoPermits to use lock manager with file/line from outside
Eric Bollengier [Tue, 6 Apr 2010 19:41:31 +0000 (21:41 +0200)]
Permits to use lock manager with file/line from outside

14 years agoAdded empty db_check_backend_thread_safe to dbi backend.
Marco van Wieringen [Mon, 5 Apr 2010 20:11:51 +0000 (22:11 +0200)]
Added empty db_check_backend_thread_safe to dbi backend.

14 years agoChange cryptic aop name
Kern Sibbald [Mon, 5 Apr 2010 20:08:02 +0000 (22:08 +0200)]
Change cryptic aop name

14 years agoFix some typos and some forgotten things. Now the code at least compiles for all...
Marco van Wieringen [Mon, 5 Apr 2010 19:57:58 +0000 (21:57 +0200)]
Fix some typos and some forgotten things. Now the code at least compiles for all backends.

14 years agoMake sql_insert_id a atomic function which executes the insert query and when that...
Marco van Wieringen [Mon, 5 Apr 2010 16:53:04 +0000 (18:53 +0200)]
Make sql_insert_id a atomic function which executes the insert query and when that succeeds retrieves the id the database used for storing the inserted record. Some databases want this to be atomic (e.g. without a COMMIT in between.) Coding wise this is also much cleaner.

14 years agoDrop have_insert_id in mdb as its always true for all backends.
Marco van Wieringen [Mon, 5 Apr 2010 15:15:17 +0000 (17:15 +0200)]
Drop have_insert_id in mdb as its always true for all backends.

14 years agoLets call it COMMIT and not END as that seems to be the counterpart of BEGIN for...
Marco van Wieringen [Mon, 5 Apr 2010 13:42:24 +0000 (15:42 +0200)]
Lets call it COMMIT and not END as that seems to be the counterpart of BEGIN for transactions. Updated Ingres lock queries to only start a transaction as the current SQL is not valid Ingres SQL.

14 years agoFix typo in sql.
Marco van Wieringen [Sun, 4 Apr 2010 20:40:14 +0000 (22:40 +0200)]
Fix typo in sql.

14 years agoTweak update version+date
Kern Sibbald [Sun, 4 Apr 2010 19:19:54 +0000 (21:19 +0200)]
Tweak update version+date

14 years agoFirst attempt at making things multi-threaded and make it possible to have multiple...
Marco van Wieringen [Sun, 4 Apr 2010 17:46:24 +0000 (19:46 +0200)]
First attempt at making things multi-threaded and make it possible to have multiple connections to the database without having the dreaded ERR=E_LQ002E The 'execute immediate' query has been issued outside of a DBMS session. This compiles but seems to give some problems so into the debugger it is.

14 years agoNeed an extra lib for dynamic linking against Ingres.
Marco van Wieringen [Sun, 4 Apr 2010 11:46:25 +0000 (13:46 +0200)]
Need an extra lib for dynamic linking against Ingres.

14 years agoUse -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is...
Marco van Wieringen [Sun, 4 Apr 2010 10:55:22 +0000 (12:55 +0200)]
Use -lq.1 -lcompat.1 as shared libraries instead of linking with -lingres which is a static library. Also need to change generated code of esqlcc a bit to get things to link with the IIsqlca function.

14 years agoAs we have a multithreaded application let tell that to esqlcc so it can optimize...
Marco van Wieringen [Sun, 4 Apr 2010 08:21:47 +0000 (10:21 +0200)]
As we have a multithreaded application let tell that to esqlcc so it can optimize for that.

14 years agoFix bscan segfault with new comment field
Eric Bollengier [Sun, 4 Apr 2010 07:38:16 +0000 (09:38 +0200)]
Fix bscan segfault with new comment field

14 years agoregress: add diff.pl tool
Eric Bollengier [Fri, 2 Apr 2010 19:13:00 +0000 (21:13 +0200)]
regress: add diff.pl tool

14 years agoCreating a database as an other user and giving grants doesn't seem to work for Ingre...
Marco van Wieringen [Sat, 3 Apr 2010 20:18:55 +0000 (22:18 +0200)]
Creating a database as an other user and giving grants doesn't seem to work for Ingres. Strange so for now create everything using the -u${db_user} option. This is something that needs to be investigated as it should be possible to have an different owner of the database.

14 years agoCreate user in the right database for Ingres.
Marco van Wieringen [Sat, 3 Apr 2010 20:09:52 +0000 (22:09 +0200)]
Create user in the right database for Ingres.

14 years agoDo all Ingres operations as the user invoking the script just as for all the other...
Marco van Wieringen [Sat, 3 Apr 2010 19:16:50 +0000 (21:16 +0200)]
Do all Ingres operations as the user invoking the script just as for all the other databases. The grant script will make sure the db_user will have the proper access rights to the database tables and sequences.

14 years agoFix username argument to sql for Ingres grants.
Marco van Wieringen [Sat, 3 Apr 2010 18:58:07 +0000 (20:58 +0200)]
Fix username argument to sql for Ingres grants.

14 years agoRework SD mount.c locking again
Kern Sibbald [Sat, 3 Apr 2010 18:56:42 +0000 (20:56 +0200)]
Rework SD mount.c locking again

14 years agoReplace ASSERT in block.c with fail Job
Kern Sibbald [Sat, 3 Apr 2010 18:55:57 +0000 (20:55 +0200)]
Replace ASSERT in block.c with fail Job

14 years agoMake the Ingres grant script work.
Marco van Wieringen [Sat, 3 Apr 2010 18:55:13 +0000 (20:55 +0200)]
Make the Ingres grant script work.

14 years agoUse uint32_t for max_concurrent_jobs
Kern Sibbald [Sat, 3 Apr 2010 18:54:39 +0000 (20:54 +0200)]
Use uint32_t for max_concurrent_jobs

14 years agoFix grant script to set grants on correct sequence names and not PostgreSQL names.
Marco van Wieringen [Sat, 3 Apr 2010 14:23:24 +0000 (16:23 +0200)]
Fix grant script to set grants on correct sequence names and not PostgreSQL names.

14 years agoAdd new item to projects
Kern Sibbald [Sat, 3 Apr 2010 09:55:50 +0000 (11:55 +0200)]
Add new item to projects

14 years agoFix bug #1542 File Daemon outputs usage message to stdout instead of stderr
Kern Sibbald [Fri, 2 Apr 2010 21:51:30 +0000 (23:51 +0200)]
Fix bug #1542 File Daemon outputs usage message to stdout instead of stderr

14 years agoApply James' rename events patch
James Harper [Fri, 2 Apr 2010 17:12:48 +0000 (19:12 +0200)]
Apply James' rename events patch

14 years agoFix typo
Marco van Wieringen [Fri, 2 Apr 2010 15:37:28 +0000 (17:37 +0200)]
Fix typo

14 years agoApply James' plugin patch
James Harper [Fri, 2 Apr 2010 10:51:03 +0000 (12:51 +0200)]
Apply James' plugin patch

14 years agoAdded limit_filter which rewrites queries which use the LIMIT functions into somethin...
Marco van Wieringen [Fri, 2 Apr 2010 07:23:10 +0000 (09:23 +0200)]
Added limit_filter which rewrites queries which use the LIMIT functions into something Ingres can understand. Removed all static functions from the myingres.sh file as they are no longer an exported interface (we can always put that back when we have the need to export more functions). Some other rewrites of the code to make it somewhat cleaner.

14 years agoAdd make_def64
Kern Sibbald [Thu, 1 Apr 2010 19:21:21 +0000 (21:21 +0200)]
Add make_def64

14 years agoFix win32/lib/bacula.defs as pointed out by James
Kern Sibbald [Thu, 1 Apr 2010 19:20:33 +0000 (21:20 +0200)]
Fix win32/lib/bacula.defs as pointed out by James

14 years agoDrop Ingres specific versions of queries with #ifdefs
Marco van Wieringen [Thu, 1 Apr 2010 17:26:33 +0000 (19:26 +0200)]
Drop Ingres specific versions of queries with #ifdefs