Changesets: bareos

bareos-14.2 eac795dd

2015-04-07 14:59

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Also replace @bindir@ in windows config files
mod - platforms/win32/fillup.sed Diff File

master be8a917f

2015-04-03 17:38

mvwieringen

Ported: N/A

Details Diff
Statistics thread should lock resources.

As the statistics thread runs as a JT_SYSTEM thread it needs to lock the
resource tree while traversing it as it could be reloaded. So we now
keep track of the current store we are processing and lock things as
short as possible. On determining the next store to use we have now the
name of the previous one we processed in the current_store variable.
When current_store is set we lookup that name and determine the next
store, if for whatever reason that gets removed (by the reload) we just
start from the beginning again collecting stats from each storage
daemon. We also cache the storageid after connecting to the daemon and
use that info in the actual statistics retrieval. Connecting to the SD
is also limited to 2 retries and 1 second wait time. We want to quickly
probe the SDs and when they are not available they will get polled in a
next run for their statistics.
mod - src/dird/stats.c Diff File

bareos-14.2 f99c722e

2015-04-03 17:38

mvwieringen

Ported: N/A

Details Diff
Statistics thread should lock resources.

As the statistics thread runs as a JT_SYSTEM thread it needs to lock the
resource tree while traversing it as it could be reloaded. So we now
keep track of the current store we are processing and lock things as
short as possible. On determining the next store to use we have now the
name of the previous one we processed in the current_store variable.
When current_store is set we lookup that name and determine the next
store, if for whatever reason that gets removed (by the reload) we just
start from the beginning again collecting stats from each storage
daemon. We also cache the storageid after connecting to the daemon and
use that info in the actual statistics retrieval. Connecting to the SD
is also limited to 2 retries and 1 second wait time. We want to quickly
probe the SDs and when they are not available they will get polled in a
next run for their statistics.
mod - src/dird/stats.c Diff File

master 666ffbe2

2015-04-02 12:44

mvwieringen

Ported: N/A

Details Diff
Add support for setting the dbg_timestamp flag via setdebug.

There was no way to enable the dbg_timestamp after starting the daemon
so added functionallity analog to setting the level and trace flag to
the generic set_debug cmd.
mod - src/dird/dird.h Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/filed/authenticate.c Diff File
mod - src/filed/dir_cmd.c Diff File
mod - src/lib/message.c Diff File
mod - src/lib/protos.h Diff File
mod - src/stored/dir_cmd.c Diff File

bareos-14.2 f16b6f5d

2015-04-02 12:44

mvwieringen

Ported: N/A

Details Diff
Add support for setting the dbg_timestamp flag via setdebug.

There was no way to enable the dbg_timestamp after starting the daemon
so added functionallity analog to setting the level and trace flag to
the generic set_debug cmd.
mod - src/dird/dird.h Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/filed/authenticate.c Diff File
mod - src/filed/dir_cmd.c Diff File
mod - src/lib/message.c Diff File
mod - src/lib/protos.h Diff File
mod - src/stored/dir_cmd.c Diff File

master ea3b114e

2015-03-31 16:11

mvwieringen

Ported: N/A

Details Diff
Use proper variable type for format attribute.

DeviceIoControl with flag FSCTL_SET_COMPRESSION expect the format to be
as unsigned short not integer which can be 32 or 64 bits depending on
the compile. Switched this variable to uint16_t which should be an
unsigned short.

Fixes 0000436: Restore crash file daemon
Affected Issues
0000436
mod - src/findlib/attribs.c Diff File

bareos-14.2 0cd4fe01

2015-03-31 16:11

mvwieringen

Ported: N/A

Details Diff
Use proper variable type for format attribute.

DeviceIoControl with flag FSCTL_SET_COMPRESSION expect the format to be
as unsigned short not integer which can be 32 or 64 bits depending on
the compile. Switched this variable to uint16_t which should be an
unsigned short.

Fixes 0000436: Restore crash file daemon
Affected Issues
0000436
mod - src/findlib/attribs.c Diff File

master 9f9a88d4

2015-03-30 13:56

frank


Committer: mvwieringen

Ported: N/A

Details Diff
Spelling error correction
mod - scripts/bareos-config-lib.sh.in Diff File
mod - src/cats/grant_bareos_privileges.in Diff File

bareos-14.2 19d075e9

2015-03-30 13:56

frank


Committer: mvwieringen

Ported: N/A

Details Diff
Spelling error correction
mod - scripts/bareos-config-lib.sh.in Diff File
mod - src/cats/grant_bareos_privileges.in Diff File

master 4ab4a709

2015-03-27 23:53

mvwieringen

Ported: N/A

Details Diff
Bump version date.
mod - src/include/version.h Diff File

master bd4f42fb

2015-03-27 21:01

mvwieringen

Ported: N/A

Details Diff
Fix compiler warning.
mod - src/lib/bsock.h Diff File

master b30eb3ee

2015-03-27 20:37

mvwieringen

Ported: N/A

Details Diff
Some more hacking on usage() of traymonitor.
mod - src/qt-tray-monitor/tray-monitor.cpp Diff File

master b886b51b

2015-03-27 20:02

mvwieringen

Ported: N/A

Details Diff
Fix problems on Fedora 19 and 21.

Glusterfs on Fedora 19 seems to be old and as such does not allow us to
build the gfapi-fd plugin. As Fedora 19 is not supported anyway it makes
little sense to add a lot of work to make the gluster stuff work on that
platform.

On Fedora 21 it seems the compile flags are more strict which leads to
the following error:

tray-monitor.cpp:65:32: error: format not a string literal and no format
arguments [-Werror=format-security]
mod - platforms/packaging/bareos.spec Diff File
mod - src/qt-tray-monitor/tray-monitor.cpp Diff File

bareos-14.2 654edbb1

2015-03-27 20:02

mvwieringen


Committer: joergs

Ported: N/A

Details Diff
Fix problems on Fedora 19 and 21.

Glusterfs on Fedora 19 seems to be old and as such does not allow us to
build the gfapi-fd plugin. As Fedora 19 is not supported anyway it makes
little sense to add a lot of work to make the gluster stuff work on that
platform.

On Fedora 21 it seems the compile flags are more strict which leads to
the following error:

tray-monitor.cpp:65:32: error: format not a string literal and no format
arguments [-Werror=format-security]
mod - platforms/packaging/bareos.spec Diff File
mod - src/qt-tray-monitor/tray-monitor.cpp Diff File

master 2b0bb002

2015-03-27 19:46

mvwieringen

Ported: N/A

Details Diff
Fix problem found by coverity.

** CID 1291923: Memory - illegal accesses (UNINIT)
/src/plugins/filed/bpipe-fd.c: 780 in
parse_plugin_definition(bpContext *, void *)()

CID 1291923: Memory - illegal accesses (UNINIT)
Using uninitialized value "argument_value".
mod - src/plugins/filed/bpipe-fd.c Diff File

bareos-14.2 bb6beb10

2015-03-27 19:46

mvwieringen

Ported: N/A

Details Diff
Fix problem found by coverity.

** CID 1291923: Memory - illegal accesses (UNINIT)
/src/plugins/filed/bpipe-fd.c: 780 in
parse_plugin_definition(bpContext *, void *)()

CID 1291923: Memory - illegal accesses (UNINIT)
Using uninitialized value "argument_value".
mod - src/plugins/filed/bpipe-fd.c Diff File

master 1c435ae2

2015-03-27 16:50

pstorz

Ported: N/A

Details Diff
Refactor "prtit" to "printit"
mod - src/dird/protos.h Diff File
mod - src/dird/ua_output.c Diff File
mod - src/dird/ua_query.c Diff File
mod - src/dird/ua_restore.c Diff File
mod - src/dird/ua_select.c Diff File
mod - src/dird/ua_update.c Diff File

bareos-14.2 d179c1f0

2015-03-27 16:50

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Refactor "prtit" to "printit"
mod - src/dird/protos.h Diff File
mod - src/dird/ua_output.c Diff File
mod - src/dird/ua_query.c Diff File
mod - src/dird/ua_restore.c Diff File
mod - src/dird/ua_select.c Diff File
mod - src/dird/ua_update.c Diff File

master 3f65364c

2015-03-26 15:02

joergs

Ported: N/A

Details Diff
Added descriptions to some config directives

These descriptions are used for automatically for the documentation.
mod - src/dird/dird_conf.c Diff File

master 461c815f

2015-03-26 13:36

joergs

Ported: N/A

Details Diff
VirtualFull: check if storage is configured
mod - src/dird/vbackup.c Diff File

master e1e34be4

2015-03-25 11:23

mvwieringen


Committer: pstorz

Ported: N/A

Details Diff
Sync lmdb.
mod - src/lmdb/lmdb.h Diff File
mod - src/lmdb/mdb.c Diff File
mod - src/lmdb/midl.c Diff File
mod - src/lmdb/midl.h Diff File

master 0a34bd6b

2015-03-24 11:20

mvwieringen


Committer: pstorz

Ported: N/A

Details Diff
Don't crash when ua->UA_sock == NULL in prtit()

Some admin jobs have an UA context but not a ua->UA_sock and when you
then blind use ua->UA_sock->fsend() you crash in the worst possible way.
We now call ua->send_msg() which has some fallback logic when
ua->UA_sock is NULL and then uses Jmsg with M_INFO to redirect the info
to the Job.

Its might not fully fix 0000418 as its seems the admin Job want to have
interaction with the user which ain't going to work in an admin Job but
crashing is about the worse what can happen.

Fixes 0000418: traceback runnning after job
Affected Issues
0000418
mod - src/dird/ua_output.c Diff File

bareos-14.2 79d1036f

2015-03-24 11:20

mvwieringen

Ported: N/A

Details Diff
Don't crash when ua->UA_sock == NULL in prtit()

Some admin jobs have an UA context but not a ua->UA_sock and when you
then blind use ua->UA_sock->fsend() you crash in the worst possible way.
We now call ua->send_msg() which has some fallback logic when
ua->UA_sock is NULL and then uses Jmsg with M_INFO to redirect the info
to the Job.

Its might not fully fix 0000418 as its seems the admin Job want to have
interaction with the user which ain't going to work in an admin Job but
crashing is about the worse what can happen.

Fixes 0000418: traceback runnning after job
Affected Issues
0000418
mod - src/dird/ua_output.c Diff File

master c2deedfd

2015-03-23 16:58

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Added cmocka unit tests

First implementation of unit testing in bareos
using the cmocka test framework.

Therefore we built the cmocka libraries for
all platforms we support (also windows).

On Unix/Linux, the unit tests are executed now
during package build by calling
"make check"
,on windows we package the test exes so
that they can be executed on the target
system during ci tests.

For the first we moved the existing
TEST_PROGRAM main() unit tests
of src/lib and src/findlib to a special
test that is being compiled in the subdirectory
unittests/ of each directory.

The specfiles were also refactored.

It should be easy to add unittests to other
directories in the same manner.
mod - GNUmakefile.in Diff File
mod - Makefile.in Diff File
mod - autoconf/config.h.in Diff File
mod - autoconf/configure.in Diff File
mod - configure Diff File
mod - platforms/packaging/bareos.dsc Diff File
mod - platforms/packaging/bareos.spec Diff File
mod - platforms/win32/mingw-debugsrc-devel.spec Diff File
mod - platforms/win32/winbareos-nsi.spec Diff File
mod - platforms/win32/winbareos.nsi Diff File
mod - platforms/win32/winbareos32.spec Diff File
mod - platforms/win32/winbareos64.spec Diff File
mod - src/findlib/Makefile.in Diff File
mod - src/findlib/drivetype.c Diff File
mod - src/findlib/fstype.c Diff File
add - src/findlib/unittests/Makefile.in Diff File
add - src/findlib/unittests/drivetype_test.c Diff File
add - src/findlib/unittests/fstype_test.c Diff File
add - src/findlib/unittests/protos.h Diff File
add - src/findlib/unittests/test_findlib.c Diff File
mod - src/lib/Makefile.in Diff File
mod - src/lib/alist.c Diff File
mod - src/lib/base64.c Diff File
mod - src/lib/berrno.c Diff File
mod - src/lib/bsnprintf.c Diff File
mod - src/lib/devlock.c Diff File
mod - src/lib/dlist.c Diff File
mod - src/lib/edit.c Diff File
mod - src/lib/fnmatch.c Diff File
mod - src/lib/guid_to_name.c Diff File
mod - src/lib/htable.c Diff File
mod - src/lib/ini.c Diff File
mod - src/lib/ini.h Diff File
mod - src/lib/rblist.c Diff File
mod - src/lib/rwlock.c Diff File
mod - src/lib/scan.c Diff File
mod - src/lib/sellist.c Diff File
mod - src/lib/tree.c Diff File
add - src/lib/unittests/Makefile.in Diff File
add - src/lib/unittests/alist_test.c Diff File
add - src/lib/unittests/base64_test.c Diff File
add - src/lib/unittests/bsnprintf_test.c Diff File
add - src/lib/unittests/devlock_test.c Diff File
add - src/lib/unittests/dlist_test.c Diff File
add - src/lib/unittests/edit_test.c Diff File
add - src/lib/unittests/htable_test.c Diff File
add - src/lib/unittests/ini_test.c Diff File
add - src/lib/unittests/passphrase_test.c Diff File
add - src/lib/unittests/protos.h Diff File
add - src/lib/unittests/rblist_test.c Diff File
add - src/lib/unittests/rwlock_test.c Diff File
add - src/lib/unittests/scan_test.c Diff File
add - src/lib/unittests/sellist_test.c Diff File
add - src/lib/unittests/test_lib.c Diff File
add - src/lib/unittests/tree_test.c Diff File
mod - src/win32/Makefile Diff File
add - src/win32/findlib/unittests/Makefile Diff File
add - src/win32/lib/unittests/Makefile Diff File

bareos-14.2 b239869f

2015-03-23 16:44

joergs

Ported: N/A

Details Diff
removed SLE_10 specific spec file

SLES 10 packages could be build with the standard spec file again.
rm - platforms/packaging/bareos-SLE_10.spec Diff File
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 240 ... 300 ... 360 ... 420 ... 480 ... 524 525 526 527 528 529 530 ... 540 ... 600 ... 635 636 637  Next  Last