Changesets: bareos

master a0e0cca2

2013-06-26 22:01

mvwieringen adm

Ported: N/A

Details Diff
Implement auto inflation/deflation in the storage daemon.

This code implements automatic deflation (compression)
of data read or written to a device and automatic inflation
(uncompression) of data written or read from a device.

This allows you to do the following:

- Compress data on the FD send it to SD and write it to the device uncompressed.
- Send data uncompressed from the FD to the SD and write it to the device compressed.
- Read compressed data from a device and send it as uncompressed data to the FD.
- Read uncompressed data from a device and send it as compressed data to the FD.

This is implemented as a SD plugin.

Fixes 0000187: Implement auto inflation/deflation in storage daemon.
Affected Issues
0000187
mod - src/win32/plugins/Makefile Diff File
mod - src/tools/bpluginfo.c Diff File
mod - src/stored/stored_conf.h Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored.h Diff File
mod - src/stored/sd_plugins.h Diff File
mod - src/stored/reserve.h Diff File
mod - src/stored/record.h Diff File
mod - src/stored/record.c Diff File
mod - src/stored/read_record.c Diff File
mod - src/stored/read.c Diff File
mod - src/stored/protos.h Diff File
mod - src/stored/ndmp_tape.c Diff File
mod - src/stored/mac.c Diff File
mod - src/stored/job.c Diff File
mod - src/stored/dev.h Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/append.c Diff File
mod - src/stored/acquire.c Diff File
mod - src/stored/Makefile.in Diff File
rm - src/qt-tray-monitor/bareos-tray-monitor.desktop Diff File
add - src/plugins/stored/autoxflate-sd.c Diff File
rm - src/plugins/README Diff File
rm - src/plugins/Makefile Diff File
mod - src/lib/protos.h Diff File
mod - src/lib/mem_pool.h Diff File
mod - src/lib/mem_pool.c Diff File
mod - src/lib/compression.c Diff File
mod - src/include/jcr.h Diff File
mod - src/filed/restore.c Diff File
mod - src/filed/crypto.c Diff File
mod - src/filed/compression.c Diff File
mod - platforms/win32/winbareos64.spec Diff File
mod - platforms/win32/winbareos32.spec Diff File
mod - configure Diff File
mod - autoconf/configure.in Diff File

bareos-13.2 12471f5b

2013-06-26 01:45

Marco van Wieringen

Ported: N/A

Details Diff
Plugin framework enhancements.

Up until now the plugins for the fd/sd/dir are loaded semi at
random by the way they are stored in the plugin directory as
they are loaded in the order readdir returns the directory entries.

This is NOT how you want it in certain situations so from now on
you can specify in the fd/sd/dir a new keyword in the generic
daemon config resource named "plugin names" which is a list
which is seperated by a ':' and enumerates the plugins that
should be loaded in what order by a daemon. In this resource
you can define the following 'plugin names = "python:bpipe"'
which means in the fd load the following plugins:

- <plugin_dir>/python-fd.so
- <plugin_dir>/bpipe-fd.so

If you don't specify the plugin names then the old behaviour
will be used to load all plugins which match the pattern
*-<daemon>.so

Now we can order the way plugins are loaded there is also a
new flag to the generate_plugin_event() function which is named
reverse which is a boolean and if its set the plugins will be
called in reverse order that they are stored in the plugin list.

Fixes 0000196: Plugin framework enhancements.
mod - src/dird/dir_plugins.c Diff File
mod - src/dird/dir_plugins.h 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/filed/fd_plugins.c Diff File
mod - src/filed/fd_plugins.h Diff File
mod - src/filed/filed.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/lib/alist.h Diff File
mod - src/lib/plugins.c Diff File
mod - src/lib/plugins.h 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/sd_plugins.c Diff File
mod - src/stored/sd_plugins.h 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

master 4b325ea3

2013-06-25 23:45

mvwieringen adm

Ported: N/A

Details Diff
Plugin framework enhancements.

Up until now the plugins for the fd/sd/dir are loaded semi at
random by the way they are stored in the plugin directory as
they are loaded in the order readdir returns the directory entries.

This is NOT how you want it in certain situations so from now on
you can specify in the fd/sd/dir a new keyword in the generic
daemon config resource named "plugin names" which is a list
which is seperated by a ':' and enumerates the plugins that
should be loaded in what order by a daemon. In this resource
you can define the following 'plugin names = "python:bpipe"'
which means in the fd load the following plugins:

- <plugin_dir>/python-fd.so
- <plugin_dir>/bpipe-fd.so

If you don't specify the plugin names then the old behaviour
will be used to load all plugins which match the pattern
*-<daemon>.so

Now we can order the way plugins are loaded there is also a
new flag to the generate_plugin_event() function which is named
reverse which is a boolean and if its set the plugins will be
called in reverse order that they are stored in the plugin list.

Fixes 0000196: Plugin framework enhancements.
Affected Issues
0000196
mod - src/stored/stored_conf.h Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored.c Diff File
mod - src/stored/sd_plugins.h Diff File
mod - src/stored/sd_plugins.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/bscan.c Diff File
mod - src/stored/bls.c Diff File
mod - src/stored/bextract.c Diff File
mod - src/stored/bcopy.c Diff File
mod - src/lib/plugins.h Diff File
mod - src/lib/plugins.c Diff File
mod - src/lib/alist.h Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed.c Diff File
mod - src/filed/fd_plugins.h Diff File
mod - src/filed/fd_plugins.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/dir_plugins.h Diff File
mod - src/dird/dir_plugins.c Diff File

bareos-13.2 2e65e341

2013-06-25 23:45

mvwieringen

Ported: N/A

Details Diff
Plugin framework enhancements.

Up until now the plugins for the fd/sd/dir are loaded semi at
random by the way they are stored in the plugin directory as
they are loaded in the order readdir returns the directory entries.

This is NOT how you want it in certain situations so from now on
you can specify in the fd/sd/dir a new keyword in the generic
daemon config resource named "plugin names" which is a list
which is seperated by a ':' and enumerates the plugins that
should be loaded in what order by a daemon. In this resource
you can define the following 'plugin names = "python:bpipe"'
which means in the fd load the following plugins:

- <plugin_dir>/python-fd.so
- <plugin_dir>/bpipe-fd.so

If you don't specify the plugin names then the old behaviour
will be used to load all plugins which match the pattern
*-<daemon>.so

Now we can order the way plugins are loaded there is also a
new flag to the generate_plugin_event() function which is named
reverse which is a boolean and if its set the plugins will be
called in reverse order that they are stored in the plugin list.

Fixes 0000196: Plugin framework enhancements.
Affected Issues
0000196
mod - src/dird/dir_plugins.c Diff File
mod - src/dird/dir_plugins.h 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/filed/fd_plugins.c Diff File
mod - src/filed/fd_plugins.h Diff File
mod - src/filed/filed.c Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/lib/alist.h Diff File
mod - src/lib/plugins.c Diff File
mod - src/lib/plugins.h 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/sd_plugins.c Diff File
mod - src/stored/sd_plugins.h 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-13.2 518faa4d

2013-06-25 18:23

Philipp Storz


Committer: Marco van Wieringen

Ported: N/A

Details Diff
Added Option to also use SILENTKEEPCONFIG

Now the installer and uninstaller can also use the option
SILENTKEEPCONFIG to keep existing configurations.

During install, existing configurations are kept and the new one is
installed as file.NEW.

During uninstall, the existing config files will not be deleted.
mod - platforms/win32/winbareos.nsi Diff File

bareos-13.2 98e5e54f

2013-06-25 16:23

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Added Option to also use SILENTKEEPCONFIG

Now the installer and uninstaller can also use the option
SILENTKEEPCONFIG to keep existing configurations.

During install, existing configurations are kept and the new one is
installed as file.NEW.

During uninstall, the existing config files will not be deleted.
mod - platforms/win32/winbareos.nsi Diff File

bareos-12.4 050b310c

2013-06-25 16:23

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Added Option to also use SILENTKEEPCONFIG

Now the installer and uninstaller can also use the option
SILENTKEEPCONFIG to keep existing configurations.

During install, existing configurations are kept and the new one is
installed as file.NEW.

During uninstall, the existing config files will not be deleted.
mod - platforms/win32/winbareos.nsi Diff File

master 91152117

2013-06-25 16:23

pstorz


Committer: mvwieringen adm

Ported: N/A

Details Diff
Added Option to also use SILENTKEEPCONFIG

Now the installer and uninstaller can also use the option
SILENTKEEPCONFIG to keep existing configurations.

During install, existing configurations are kept and the new one is
installed as file.NEW.

During uninstall, the existing config files will not be deleted.
mod - platforms/win32/winbareos.nsi Diff File

master 41a8133e

2013-06-25 11:24

mvwieringen adm

Ported: N/A

Details Diff
Fix tree_getpath to work with paths longer then 256 bytes.

We use a temporary POOLMEM buffer for the storage of the full
PATH but as we were passing that as a pointer not a pointer to
a pointer when the buffer reaches 256 bytes the check_pool_memory_size
will allocate a new buffer but as we cannot pass the right new buffer
back to the calling function we were still using the already freed
buffer which we pass back to the calling function which then tries
to free that pointer again which leads to the memory allocator blowing
up with a double free error.
mod - src/lib/tree.c Diff File

master 0b5e0243

2013-06-24 16:56

mvwieringen adm

Ported: N/A

Details Diff
Interactive path selection can use refactoring

The code in the director which is used to select interactively the files
to restore needs some cleanup. Currently the cwd (current working
directory) is stored in a fixed length buffer of sometimes 1100 and
sometimes 2000 bytes. It would be better to use a POOLMEM buffer
which can extend to the actual length needed.

Currently you can also not directly mark or unmark a full path as the mark
and unmark only matches the name using fnmatch against the current working
directory. This also skips any path information and as the internal storage
of the tree is per directory node this will never work. A simple fix would
be to check if the selection pattern is a full path (e.g. has a / in it)
and then split the selection in a path and file part. Then we can do a
change directory into the wanted path and then do the same pattern matching
and restore the working directory after the selection.

Fixes 0000195: Interactive path selection can use refactoring
Affected Issues
0000195
mod - src/lib/tree.h Diff File
mod - src/lib/tree.c Diff File
mod - src/dird/ua_tree.c Diff File

bareos-13.2 74f1743d

2013-06-22 13:52

Marco van Wieringen

Ported: N/A

Details Diff
Fix windows rc files.

- Add the right copyright info.
- Generate the rc files with the right version info at build time.
mod - src/win32/Makefile Diff File
rm - src/win32/console/consoleres.rc Diff File
add - src/win32/console/consoleres.rc.in Diff File
rm - src/win32/qt-console/batres.rc Diff File
add - src/win32/qt-console/batres.rc.in Diff File
rm - src/win32/qt-tray-monitor/traymon.rc Diff File
add - src/win32/qt-tray-monitor/traymon.rc.in Diff File

bareos-13.2 24bda41f

2013-06-22 11:52

mvwieringen adm

Ported: N/A

Details Diff
Fix windows rc files.

- Add the right copyright info.
- Generate the rc files with the right version info at build time.
mod - src/win32/Makefile Diff File
rm - src/win32/console/consoleres.rc Diff File
add - src/win32/console/consoleres.rc.in Diff File
rm - src/win32/qt-console/batres.rc Diff File
add - src/win32/qt-console/batres.rc.in Diff File
rm - src/win32/qt-tray-monitor/traymon.rc Diff File
add - src/win32/qt-tray-monitor/traymon.rc.in Diff File

bareos-12.4 1f095962

2013-06-22 11:52

mvwieringen adm

Ported: N/A

Details Diff
Fix windows rc files.

- Add the right copyright info.
- Generate the rc files with the right version info at build time.
mod - src/win32/Makefile Diff File
rm - src/win32/console/consoleres.rc Diff File
add - src/win32/console/consoleres.rc.in Diff File
rm - src/win32/filed/filedres.rc Diff File
add - src/win32/filed/filedres.rc.in Diff File
rm - src/win32/qt-console/batres.rc Diff File
add - src/win32/qt-console/batres.rc.in Diff File
rm - src/win32/qt-tray-monitor/traymon.rc Diff File
add - src/win32/qt-tray-monitor/traymon.rc.in Diff File

master 7ac6602e

2013-06-22 11:52

mvwieringen adm

Ported: N/A

Details Diff
Fix windows rc files.

- Add the right copyright info.
- Generate the rc files with the right version info at build time.
add - src/win32/qt-tray-monitor/traymon.rc.in Diff File
rm - src/win32/qt-tray-monitor/traymon.rc Diff File
add - src/win32/qt-console/batres.rc.in Diff File
rm - src/win32/qt-console/batres.rc Diff File
add - src/win32/console/consoleres.rc.in Diff File
rm - src/win32/console/consoleres.rc Diff File
mod - src/win32/Makefile Diff File

bareos-13.2 cd1829e1

2013-06-21 15:59

Marco van Wieringen

Ported: N/A

Details Diff
Tweak text.

- Loose some copyright claims.
- Drop unused patch files
- Loose any references to Kern or Kern Sibbald in relation to bareos.
rm - src/cats/create_sqlite3_database.in.patch Diff File
rm - src/cats/grant_mysql_privileges.patch Diff File
rm - src/cats/make_catalog_backup.in.patch Diff File
rm - src/cats/make_sqlite3_tables.in.patch Diff File
mod - src/lib/tree.c Diff File
mod - src/plugins/fd/test-plugin-fd.c Diff File
mod - src/tests/bbatch.c Diff File
mod - src/tests/cats_test.c Diff File
mod - src/tests/testls.c Diff File

bareos-13.2 02bb3d44

2013-06-21 13:59

mvwieringen adm

Ported: N/A

Details Diff
Tweak text.

- Loose some copyright claims.
- Drop unused patch files
- Loose any references to Kern or Kern Sibbald in relation to bareos.
rm - src/cats/create_sqlite3_database.in.patch Diff File
rm - src/cats/grant_mysql_privileges.patch Diff File
rm - src/cats/make_catalog_backup.in.patch Diff File
rm - src/cats/make_sqlite3_tables.in.patch Diff File
mod - src/lib/tree.c Diff File
mod - src/plugins/fd/test-plugin-fd.c Diff File
mod - src/tests/bbatch.c Diff File
mod - src/tests/cats_test.c Diff File
mod - src/tests/testls.c Diff File

bareos-12.4 274eb5f7

2013-06-21 13:59

mvwieringen adm

Ported: N/A

Details Diff
Tweak text.

- Loose some copyright claims.
- Drop unused patch files
- Loose any references to Kern or Kern Sibbald in relation to bareos.
rm - src/cats/create_sqlite3_database.in.patch Diff File
rm - src/cats/grant_mysql_privileges.patch Diff File
rm - src/cats/make_catalog_backup.in.patch Diff File
rm - src/cats/make_sqlite3_tables.in.patch Diff File
mod - src/lib/tree.c Diff File
mod - src/plugins/fd/test-plugin-fd.c Diff File
mod - src/tests/bbatch.c Diff File
mod - src/tests/cats_test.c Diff File
mod - src/tests/testls.c Diff File

master 543b70bd

2013-06-21 13:59

mvwieringen adm

Ported: N/A

Details Diff
Tweak text.

- Loose some copyright claims.
- Drop unused patch files
- Loose any references to Kern or Kern Sibbald in relation to bareos.
mod - src/tests/testls.c Diff File
mod - src/tests/cats_test.c Diff File
mod - src/tests/bbatch.c Diff File
mod - src/plugins/fd/test-plugin-fd.c Diff File
mod - src/lib/tree.c Diff File
rm - src/cats/make_sqlite3_tables.in.patch Diff File
rm - src/cats/make_catalog_backup.in.patch Diff File
rm - src/cats/grant_mysql_privileges.patch Diff File
rm - src/cats/create_sqlite3_database.in.patch Diff File

bareos-13.2 42fd0764

2013-06-20 21:54

Marco van Wieringen

Ported: N/A

Details Diff
Restore of encrypted data fails when not all files are created.

We should check if a file is actually extracted when checking
if we encounter an unexpected STREAM_ENCRYPTED_SESSION_DATA.
The rctx.cs is setup by a call to crypto_session_decode()
and that session lingers until its teared down by
close_previous_stream() but that only occurs when the next
file is actually extracted. So if we extract one encrypted
file and not the one after that the rctx.cs will not be cleared
until we hit the next extracted file or the end of the restore.
So we should only handle the session at all when we extract
the file as otherwise it makes absolutely no sense to even
consider the encrypted session data stream at all as we will
be skipping the file extract anyway and skip all encrypted data
blocks.

Fixes 0000192: Restore of PKI encrypted data fails if some of the files
should not be replaced
mod - src/filed/restore.c Diff File

bareos-13.2 5ef01503

2013-06-20 19:54

mvwieringen adm

Ported: N/A

Details Diff
Restore of encrypted data fails when not all files are created.

We should check if a file is actually extracted when checking
if we encounter an unexpected STREAM_ENCRYPTED_SESSION_DATA.
The rctx.cs is setup by a call to crypto_session_decode()
and that session lingers until its teared down by
close_previous_stream() but that only occurs when the next
file is actually extracted. So if we extract one encrypted
file and not the one after that the rctx.cs will not be cleared
until we hit the next extracted file or the end of the restore.
So we should only handle the session at all when we extract
the file as otherwise it makes absolutely no sense to even
consider the encrypted session data stream at all as we will
be skipping the file extract anyway and skip all encrypted data
blocks.

Fixes 0000192: Restore of PKI encrypted data fails if some of the files
should not be replaced
Affected Issues
0000192
mod - src/filed/restore.c Diff File

bareos-12.4 ae186120

2013-06-20 19:54

mvwieringen adm

Ported: N/A

Details Diff
Restore of encrypted data fails when not all files are created.

We should check if a file is actually extracted when checking
if we encounter an unexpected STREAM_ENCRYPTED_SESSION_DATA.
The rctx.cs is setup by a call to crypto_session_decode()
and that session lingers until its teared down by
close_previous_stream() but that only occurs when the next
file is actually extracted. So if we extract one encrypted
file and not the one after that the rctx.cs will not be cleared
until we hit the next extracted file or the end of the restore.
So we should only handle the session at all when we extract
the file as otherwise it makes absolutely no sense to even
consider the encrypted session data stream at all as we will
be skipping the file extract anyway and skip all encrypted data
blocks.

Fixes 0000192: Restore of PKI encrypted data fails if some of the files
should not be replaced
Affected Issues
0000192
mod - src/filed/restore.c Diff File

master 38e8ff91

2013-06-20 19:54

mvwieringen adm

Ported: N/A

Details Diff
Restore of encrypted data fails when not all files are created.

We should check if a file is actually extracted when checking
if we encounter an unexpected STREAM_ENCRYPTED_SESSION_DATA.
The rctx.cs is setup by a call to crypto_session_decode()
and that session lingers until its teared down by
close_previous_stream() but that only occurs when the next
file is actually extracted. So if we extract one encrypted
file and not the one after that the rctx.cs will not be cleared
until we hit the next extracted file or the end of the restore.
So we should only handle the session at all when we extract
the file as otherwise it makes absolutely no sense to even
consider the encrypted session data stream at all as we will
be skipping the file extract anyway and skip all encrypted data
blocks.

Fixes 0000192: Restore of PKI encrypted data fails if some of the files
should not be replaced
Affected Issues
0000192
mod - src/filed/restore.c Diff File

bareos-13.2 4fcd9dbf

2013-06-18 12:02

Marco van Wieringen

Ported: N/A

Details Diff
Move include files to right directory.

bareos-13.2 29c4c460

2013-06-18 10:02

mvwieringen adm

Ported: N/A

Details Diff
Move include files to right directory.

bareos-12.4 ecdb7f1b

2013-06-18 10:02

mvwieringen adm

Ported: N/A

Details Diff
Move include files to right directory.
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 240 ... 300 ... 360 ... 420 ... 480 ... 540 ... 588 589 590 591 592 593 594 ... 600 ... 607 608 609  Next  Last