Changesets: bareos

playground 010f7dd8

2014-04-05 10:10

Marco van Wieringen

Ported: N/A

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

playground c20588ad

2014-04-05 10:10

Marco van Wieringen

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 0a592169

2014-04-05 10:10

mvwieringen

Ported: N/A

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

playground ef2b5b61

2014-04-05 10:10

Marco van Wieringen

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

playground d611c331

2014-04-05 10:10

Marco van Wieringen

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

playground e25bf665

2014-04-05 10:10

Marco van Wieringen

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

playground 33f621a2

2014-04-05 10:10

Marco van Wieringen

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

playground 1511c17a

2014-04-05 10:10

Marco van Wieringen

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

playground 8c01c8b1

2014-04-05 10:10

Marco van Wieringen

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

playground 69f19ada

2014-04-05 10:10

Marco van Wieringen

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

playground 0506e9c9

2014-04-05 10:10

Marco van Wieringen

Ported: N/A

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

playground 5975f252

2014-04-05 10:10

Marco van Wieringen

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

playground f307bc21

2014-04-05 10:10

Marco van Wieringen

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

playground 3a904d02

2014-04-05 10:10

Marco van Wieringen

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
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

playground 695e69dc

2014-04-05 10:10

Philipp Storz


Committer: Marco van Wieringen

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

playground 9772b043

2014-04-05 10:10

Marco van Wieringen

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

playground 1a08ce88

2014-04-05 10:10

Marco van Wieringen

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

playground 9785faf5

2014-04-05 10:10

Marco van Wieringen

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

playground 2755d70a

2014-04-05 10:10

Marco van Wieringen

Ported: N/A

Details Diff
Update AUTHORS.
mod - AUTHORS Diff File

master 8243f8aa

2014-04-02 17:45

Joerg Steffens


Committer: Marco van Wieringen

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

playground d04e50a1

2014-04-02 15:45

joergs

Ported: N/A

Details Diff
use dh_installinit to handle Debian start scripts

the Debian package build (Debian, Ubuntu, Univention) mechanism
offers support functions to handle daemon init scripts.
This patch uses this mechanism.
Changed behaviour:
bareos-fd and bareos-sd are started on install.
This is normally not useful, because they are not configured correctly.
However, is the Debian default behavior.
bareos-fd and bareos-sd are restarted on update.
bareos-fd, bareos-sd and bareos-dir are stopped on removal.
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.
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.spec Diff File

playground 56762e98

2014-04-02 15:45

joergs

Ported: N/A

Details Diff
use dh_installinit to handle Debian start scripts

the Debian package build (Debian, Ubuntu, Univention) mechanism
offers support functions to handle daemon init scripts.
This patch uses this mechanism.
Changed behaviour:
bareos-fd and bareos-sd are started on install.
This is normally not useful, because they are not configured correctly.
However, is the Debian default behavior.
bareos-fd and bareos-sd are restarted on update.
bareos-fd, bareos-sd and bareos-dir are stopped on removal.
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.
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

playground 7f41eb7d

2014-04-02 15:45

joergs

Ported: N/A

Details Diff
use dh_installinit to handle Debian start scripts

the Debian package build (Debian, Ubuntu, Univention) mechanism
offers support functions to handle daemon init scripts.
This patch uses this mechanism.
Changed behaviour:
bareos-fd and bareos-sd are started on install.
This is normally not useful, because they are not configured correctly.
However, is the Debian default behavior.
bareos-fd and bareos-sd are restarted on update.
bareos-fd, bareos-sd and bareos-dir are stopped on removal.
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.
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

master 2789dd54

2014-04-02 15: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

master 7f850aa9

2014-04-02 12:48

Joerg Steffens


Committer: Marco van Wieringen

Ported: N/A

Details Diff
get_database_param: return default value

return the default value, if calling bareos-dhcheck fails.

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
mod - scripts/bareos-config-lib.sh.in Diff File
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 240 ... 300 ... 360 ... 420 ... 480 ... 540 ... 591 592 593 594 595 596 597 ... 600 ... 641 642 643  Next  Last