Changesets: bareos2015

bareos-14.2 5aedc16c

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Drop config engine README which makes no sense anymore.
rm - src/dird/README-config Diff File

bareos-14.2 a636cdfb

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Implement some missing functionality in python-fd plugin.

- Implement bEventHandleBackupFile event.

Implemented the missing code for handling the bEventHandleBackupFile event
by calling a new entry point (handle_backup_file) in the python module and
passing it in a savepacket structure with the file being processed. The
return codes are also fixed along the way things work now like this:

- bRC_OK: Options plugin will do backup e.g. call IOmethod in plugin.
- bRC_Skip: Options plugin want to skip the backup of this file.
- bRC_Core: Options plugin want the Bareos core to do the backup of the file.
- bRC_*: Error abort backing up.

- Implement check_file() method.

Implemented the missing code for handling the check_file() method by calling
a new entry point (check_file) in the python module and passing it the filename
of the file currently being processed.

- Implement create_file() method.

Allow a python script to do everything a normal C-plugin can also do
in the create_file() plugin method. For this we needed to implement the
RestorePacket structure in Python and create a dummy create_file method
in python that returns CF_EXTRACT in the create_status field of the
restore_packet structure.

- Implement event filtering for certain events.

Some events get generated via a different code path and were up until
now not filtered using the is_event_enabled() function. Added support
to the following functions:

- plugin_option_handle_file()
- plugin_save()
- plugin_estimate()
- plugin_name_stream()

Also refactored the code along the way.
mod - src/filed/backup.c Diff File
mod - src/filed/fd_plugins.c Diff File
mod - src/plugins/filed/bareos-fd.py Diff File
mod - src/plugins/filed/python-fd.c Diff File
mod - src/plugins/filed/python-fd.h Diff File

bareos-14.2 45c54090

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Abstract the accurate payload storage from the datatype used.

Up until now the accurate payload was always stored in a htable
(memory hash table) but that will not scale. We want to support multiple
storage classes for the accurate payload (e.g. the actual accurate data
accessed via the filename as key.) Things like Symas LMDB is a good
candidate as a key/value store. This patch implements the accurate data
using a class based abstraction that allows multiple implementations of
the storage. Currently it supports the old HTABLE and LMDB. The
prototype has some code that is not needed at this point as accurate
data is written only ones and after that never updated so we don't
strictly need an update method which is implemented for LMDB and is
unneeded for HTABLE as there you get internal memory you can manipulate.
The seen logic is moved into a simple bitmap that is part of the higher
level B_ACCURATE class so we don't need to update the actual accurate
payload when we only want to register that the item has been vistited.
Otherwise for things like LMDB we keep on updating the data in the LMDB
which is just to much overhead which we can easily work around with this
bitmap.
mod - src/filed/Makefile.in Diff File
mod - src/filed/accurate.c Diff File
add - src/filed/accurate.h Diff File
add - src/filed/accurate_htable.c Diff File
add - src/filed/accurate_lmdb.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/include/jcr.h Diff File
mod - src/win32/Makefile Diff File
mod - src/win32/Makefile.inc Diff File
mod - src/win32/compat/include/mingwconfig.h Diff File
mod - src/win32/filed/Makefile Diff File
add - src/win32/lmdb/Makefile Diff File
add - src/win32/lmdb/make_def Diff File

bareos-14.2 66fcc42b

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Refactored crypto chksum calculation.

Merged the duplicate code from accurate.c and verify.c into one set of
functions. Fixes a TODO from long long ago.
mod - src/filed/accurate.c Diff File
mod - src/filed/protos.h Diff File
mod - src/filed/verify.c Diff File

bareos-14.2 2932f44b

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Include the LMDB copyright information in our LICENSE file.
mod - LICENSE Diff File

bareos-14.2 b8cb5b2f

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Fix typo.
mod - src/lib/cram-md5.c Diff File

bareos-14.2 080d3750

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Import LMDB support code.
mod - Makefile.in Diff File
mod - autoconf/configure.in Diff File
mod - src/include/version.h Diff File
add - src/lmdb/COPYRIGHT Diff File
add - src/lmdb/LICENSE Diff File
add - src/lmdb/Makefile.in Diff File
add - src/lmdb/lmdb.h Diff File
add - src/lmdb/mdb.c Diff File
add - src/lmdb/midl.c Diff File
add - src/lmdb/midl.h Diff File

bareos-13.2 f76a6720

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Fix typo.
mod - src/lib/cram-md5.c Diff File

bareos-14.2 3e354fd9

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Bump copyright on changed files.
mod - src/console/console_conf.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/res.c Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.cpp Diff File
mod - src/stored/stored_conf.c Diff File

bareos-14.2 1544cfff

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Suppress printing of non existing resource types.

Only print a resource type if one ore more exist when using show all.
mod - src/dird/ua_output.c Diff File

bareos-14.2 10df2e9f

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Don't print config keyword aliases.

Some config keywords are an alias for an other when dumping the config
we should not print these entries as otherwise we get the same config
keyword set multiple times.
mod - src/dird/dird_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/res.c Diff File

bareos-14.2 a7943c09

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Optimize checking of required and default values.

When printing the configuration we now first check if we need to print
the value by checking if its a required value or matches the default
setting in the config table. By moving it before the big switch we can
eliminate quite some duplicate code and always use the right type of
value in the union with result types.
mod - src/dird/dird_conf.c Diff File
mod - src/lib/res.c Diff File

bareos-14.2 e603344a

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Promote the BRSRES::print_config() method.

Lets make BRSRES::print_config() a generic method that is in the shared
library and can be used by each daemon for printing the generic types
support by libbareoscfg and allow specific printing via an additional
callback that is initialized on init of the CONFIG class.
mod - src/console/console.c Diff File
mod - src/console/console_conf.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/filed/filed.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/res.c Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/qt-console/main.cpp Diff File
mod - src/qt-tray-monitor/tray-monitor.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.cpp Diff File
mod - src/stored/bcopy.c Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/bls.c Diff File
mod - src/stored/bscan.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/stored.c Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored_conf.h Diff File

bareos-14.2 6d4e8c88

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Transplant some code from parse_conf.c to res.c
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/res.c Diff File

bareos-14.2 3d09d782

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Bring config engine to 2014 and don't polute namespace.

Implement a TODO from June 2008 and get ride of a slack of global
variables used by the config engine. The code seems to be have been
refactored in 2008 to access most configfile parsing via the CONFIG
class and it already has most of the needed structures which also were
kept as global variables. From now on the config engine is accessed via
the CONFIG class and only res_all is left as global variable. As a side
effect the config CLASS is now available as my_config and is a global
variable.

Global variable introduced:

- CLASS CONFIG *my_config (Global configuration)

Global variables removed:

- res_all_size
- r_first
- r_last
- resources
- res_head

It should be possible also to get ride of res_all but that needs some
more testing. And is currently not very high on my urgency map.
mod - src/console/console_conf.c Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/res.c Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.cpp Diff File
mod - src/stored/status.c Diff File
mod - src/stored/stored_conf.c Diff File

bareos-14.2 fd8a9ff2

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Only print when some items have a non zero setting.
mod - src/dird/dird_conf.c Diff File

bareos-14.2 18b7db2a

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Use an item formatter to do the right indention level.

From now on we use an indention function which we pass the wanted
indention level so we no longer have to embed the right number of spaces
in the output string. The options of a fileset should now be printed
with the right indention level.
mod - src/dird/dird_conf.c Diff File
mod - src/lib/address_conf.c Diff File

bareos-14.2 0519a4b0

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Don't use me global variable in debug mode.
mod - src/dird/dird.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/lib/parse_conf.h Diff File

bareos-14.2 961420fa

2014-04-05 12:10

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Implemented print of configuration
mod - src/console/console.c Diff File
mod - src/console/console_conf.c Diff File
mod - src/console/console_conf.h Diff File
mod - src/dird/authenticate.c Diff File
mod - src/dird/dbcheck.c Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/inc_conf.c Diff File
add - src/dird/inc_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/ndmp_dma.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/dird/ua_run.c Diff File
mod - src/filed/authenticate.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/lib/address_conf.c Diff File
mod - src/lib/address_conf.h Diff File
mod - src/lib/edit.c Diff File
add - src/lib/generic_res.h Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/lib/protos.h Diff File
mod - src/lib/res.c Diff File
mod - src/lib/util.c Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/qt-console/bat_conf.h Diff File
mod - src/qt-console/bcomm/dircomm.cpp Diff File
mod - src/qt-tray-monitor/authenticate.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.h Diff File
mod - src/stored/authenticate.c Diff File
mod - src/stored/ndmp_tape.c Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored_conf.h Diff File

bareos-14.2 9fb8fc3c

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Remove MAXSTRING variable

Fix long standing TODO to remove the MAXSTRING definition.
Use POOLMEM and POOL_MEM to replace the fixed sized buffers.

Fixes 0000164: Remove MAXSTRING variable
Affected Issues
0000164
mod - autoconf/configure.in Diff File
mod - src/dird/expand.c Diff File
mod - src/dird/fd_cmds.c Diff File
mod - src/dird/ndmp_dma.c Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/ua_select.c Diff File
mod - src/dird/verify.c Diff File
mod - src/filed/backup.c Diff File
mod - src/filed/verify.c Diff File
mod - src/findlib/xattr.c Diff File
mod - src/include/baconfig.h Diff File
mod - src/lib/cram-md5.c Diff File
mod - src/lib/ini.c Diff File
mod - src/lib/lex.c Diff File
mod - src/lib/lex.h Diff File
mod - src/lib/message.c Diff File
mod - src/lib/parse_bsr.c Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/runscript.c Diff File
mod - src/lib/util.c Diff File
mod - src/qt-console/restore/restore.cpp Diff File
mod - src/stored/acquire.c Diff File
mod - src/stored/ndmp_tape.c Diff File

bareos-14.2 95fdab16

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Move jobdefs before jobs in parser.

That way we het a config that first has the JobDefs and then
the Jobs which makes it easier to read for us mortals.
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File

bareos-14.2 1055f104

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Rewrite config engine to use integer types.

Instead of using function pointers for storing the config parser function
to call use integer types which are translated at runtime to the correct
function to call. This should work around hardening being performed on
shared libraries on some Linux platforms. On those platforms the actual
comparing of the function pointers fail, using integers for the different
data types makes it also possible to use an elegant switch to jump to the
correct parsing function instead of using an endless set of ifs needed when
comparing memory addresses of functions.

An extra side effect of not using function pointers is that the store functions
don't need to be global so the parse_conf.c in the shared library only exports
10 instead of 32 symbols and also the daemon specific store function can be
local only functions. The only thing needed is a callback to a dispatch function
in the daemon when it has no standard config items which are not of a generic
type (e.g. not bool, integer etc but things like protocol etc.) which leads to a
very small extra payload which is probably not even measurable.
mod - src/console/console_conf.c Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/inc_conf.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/lib/ini.c Diff File
mod - src/lib/ini.h Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.h Diff File
mod - src/plugins/filed/test-plugin-fd.c Diff File
mod - src/qt-console/bat_conf.cpp Diff File
mod - src/qt-tray-monitor/tray_conf.cpp Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored_conf.h Diff File

bareos-14.2 0e588940

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Fix wording.

Restore original author of parts of the code and show that its part of
a refactoring of the code.
mod - src/dird/migrate.c Diff File
mod - src/dird/sd_cmds.c Diff File
mod - src/filed/compression.c Diff File
mod - src/filed/crypto.c Diff File
mod - src/filed/fileset.c Diff File
mod - src/lib/bsock.c Diff File
mod - src/lib/bsock_tcp.c Diff File
mod - src/lib/compression.c Diff File

bareos-14.2 d0cd5589

2014-04-05 12:10

mvwieringen

Ported: N/A

Details Diff
Update AUTHORS.
mod - AUTHORS Diff File

bareos-14.2 8243f8aa

2014-04-02 17:45

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
handle Debian start scripts by dh_installinit

the Debian package build mechanism
(used for Debian, Ubuntu, Univention)
offers support functions to handle daemon init scripts.
This patch uses this mechanism.
It also adapts the behavior of RPM packages to be identical to DEB packages.
Changed behaviour:

bareos-dir, bareos-sd and bareos-fd are enabled on install/update
On install, daemons are normally not configured
and therefore automatic activation often not useful.
However, this the the default behavior of Debian
and therefore we configured it in this way.

bareos-fd is started/restarted on install/update
bareos-dir and bareos-sd are not restarted, to prevent canceling running jobs.

bareos-dir, bareos-sd and bareos-fd are stopped on deinstall

When doing an install from source (make, make install) on Debian,
init scripts will not be installed.
An extra call "make install-autostart" is required.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - .travis.yml Diff File
mod - autoconf/configure.in Diff File
mod - debian/bareos-director.install Diff File
mod - debian/bareos-director.postinst Diff File
mod - debian/bareos-director.prerm Diff File
mod - debian/bareos-filedaemon.install Diff File
mod - debian/bareos-filedaemon.postinst Diff File
mod - debian/bareos-filedaemon.prerm Diff File
mod - debian/bareos-storage.install Diff File
mod - debian/bareos-storage.postinst Diff File
mod - debian/bareos-storage.prerm Diff File
mod - debian/rules Diff File
mod - debian/univention-bareos-schema.postinst Diff File
mod - debian/univention-bareos.postinst Diff File
mod - debian/univention-bareos.postrm Diff File
mod - debian/univention-bareos.preinst Diff File
mod - debian/univention-bareos.prerm Diff File
mod - platforms/debian/Makefile.in Diff File
mod - platforms/packaging/bareos-RHEL_4.spec Diff File
mod - platforms/packaging/bareos.spec Diff File
 First  Prev  1 2 3 ... 10 ... 19 20 21 22 23 24 25 ... 30 ... 40 ... 50 ... 57 58 59  Next  Last