Changesets: bareos2015

bareos-14.2 12396529

2014-07-21 22:46

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Use a special backend dir to store both catalog and storage backends.

We want to store the catalog and storage backends in a special dir so
they are not in any lib directory as they are not really shared
libraries but shared object with some very specific entry points.

The code is now so that by default the configured backend dir set at
compile time is set as default and the user can specify additional
directories that should be searched for backend in the configfile of
both the director and the storage daemon. The code checks if the wanted
backend is located in one of the specified backend directories and it
loaded from the first directory it is found in.

The packaging is changed to do the following:
- Enable building packages with dynamic-storage-backends.
- Different backends are handled in separate libraries.
- The bareos-storage-tape package does now also contain the required libraries.
- The fifo backend is also handled by a separate package (bareos-storage-fifo).
mod - autoconf/Make.common.in Diff File
mod - autoconf/config.h.in Diff File
mod - autoconf/configure.in Diff File
mod - debian/bareos-common.install Diff File
mod - debian/bareos-database-common.install Diff File
mod - debian/bareos-database-mysql.install Diff File
mod - debian/bareos-database-postgresql.install Diff File
mod - debian/bareos-database-sqlite3.install Diff File
mod - debian/bareos-storage-tape.install Diff File
mod - debian/control Diff File
mod - debian/control.common Diff File
mod - debian/rules Diff File
mod - manpages/bareos-dbcheck.8 Diff File
mod - manpages/bconsole.1 Diff File
mod - manpages/bpluginfo.8 Diff File
mod - manpages/bscan.8 Diff File
mod - platforms/packaging/bareos-RHEL_4.spec Diff File
mod - platforms/packaging/bareos.dsc Diff File
mod - platforms/packaging/bareos.spec Diff File
mod - src/cats/Makefile.in Diff File
mod - src/cats/cats.h Diff File
mod - src/cats/cats_backends.c Diff File
mod - src/cats/protos.h Diff File
mod - src/defaultconfigs/diskonly/bareos-dir.conf.in Diff File
mod - src/dird/bareos-dir.conf.in 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/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/stored/backends/Makefile.in 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/protos.h Diff File
mod - src/stored/sd_backends.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
mod - src/tests/bbatch.c Diff File
mod - src/tests/bvfs_test.c Diff File
mod - src/tests/cats_test.c Diff File
mod - src/tests/ing_test.c Diff File

bareos-14.2 3a5a29ce

2014-07-21 22:46

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
get rid of special SPEC file for RHEL4

use the normal bareos.spec also for RHEL4

Signed-off-by: Marco van Wieringen <marco.van.wieringen@bareos.com>
rm - platforms/packaging/bareos-RHEL_4.spec Diff File
mod - platforms/packaging/bareos.spec Diff File

bareos-14.2 3e1bbfee

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Some preliminary work for allowing to have audit events.
mod - src/dird/Makefile.in Diff File
mod - src/dird/bareos-dir.conf.in Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/protos.h Diff File
mod - src/dird/ua_acl.c Diff File
add - src/dird/ua_audit.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/dird/ua_restore.c Diff File
mod - src/dird/ua_run.c Diff File
mod - src/dird/ua_select.c Diff File
mod - src/dird/ua_server.c Diff File
mod - src/dird/ua_status.c Diff File
mod - src/dird/ua_update.c Diff File
mod - src/lib/generic_res.h Diff File
mod - src/lib/message.h Diff File
mod - src/lib/res.c Diff File
mod - src/win32/dird/Makefile Diff File

bareos-14.2 1c7dfd90

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Initial code commit for keeping statistics in the SD and transfer to DIR.
mod - src/cats/cats.h Diff File
mod - src/cats/ddl/creates/ingres.sql Diff File
mod - src/cats/ddl/creates/mysql.sql Diff File
mod - src/cats/ddl/creates/postgresql.sql Diff File
mod - src/cats/ddl/creates/sqlite3.sql Diff File
mod - src/cats/ddl/drops/ingres.sql Diff File
mod - src/cats/ddl/drops/mysql.sql Diff File
mod - src/cats/ddl/drops/postgresql.sql Diff File
mod - src/cats/ddl/grants/ingres-readonly.sql Diff File
mod - src/cats/ddl/grants/ingres.sql Diff File
mod - src/cats/ddl/grants/postgresql-readonly.sql Diff File
mod - src/cats/ddl/grants/postgresql.sql Diff File
add - src/cats/ddl/updates/mysql.2002_2003.sql Diff File
add - src/cats/ddl/updates/postgresql.2002_2003.sql Diff File
add - src/cats/ddl/updates/sqlite3.2002_2003.sql Diff File
mod - src/cats/protos.h Diff File
mod - src/cats/sql_create.c Diff File
mod - src/dird/Makefile.in Diff File
mod - src/dird/admin.c Diff File
mod - src/dird/autoprune.c Diff File
mod - src/dird/backup.c Diff File
mod - src/dird/catreq.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/dird/job.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/next_vol.c Diff File
mod - src/dird/protos.h Diff File
mod - src/dird/run_conf.c Diff File
add - src/dird/stats.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_restore.c Diff File
mod - src/dird/ua_select.c Diff File
mod - src/dird/ua_server.c Diff File
mod - src/dird/ua_status.c Diff File
mod - src/dird/ua_update.c Diff File
mod - src/dird/verify.c Diff File
mod - src/lib/scsi_tapealert.c Diff File
mod - src/plugins/stored/scsitapealert-sd.c Diff File
mod - src/stored/Makefile.in Diff File
mod - src/stored/acquire.c Diff File
mod - src/stored/dir_cmd.c Diff File
add - src/stored/dummy.c Diff File
mod - src/stored/fd_cmds.c Diff File
mod - src/stored/job.c Diff File
mod - src/stored/mac.c Diff File
mod - src/stored/protos.h Diff File
mod - src/stored/sd_cmds.c Diff File
mod - src/stored/sd_plugins.c Diff File
mod - src/stored/sd_plugins.h Diff File
add - src/stored/sd_stats.c Diff File
mod - src/stored/spool.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
mod - src/win32/dird/Makefile Diff File
mod - src/win32/stored/Makefile Diff File

bareos-14.2 47b6b5cc

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
First prototype dynamic loading SD backends.

We now store all shared objects used in all SD programs
(stored, btape, bls ...) in a shared library named
libbareossd-<version>.so so the final binaries get much
smaller and share the same code. Next to that we started
the first work on making tape specific code abstracted in
the tape_device class and no longer in the generic device
code. Now we implement the different methods of the different
device classes using virtual methods some are pure virtual
which means that the derived class needs to implement this
method itself and some have a default implementation which the
class can override.

This also contains the first try at making it possible to
dynamically load the different SD backends. The file backend
will always be part of the libbareossd.so but the tape and
the different cloud storage backends are dynamically loadable
using the same technique as what is used for loading the
different catalog backends. This means that we can distribute
the different storage programs without the need to have all
kind of dependencies on the different cloud backend we support
now.

As part of this big refactoring we removed the vtape code which
doesn't serve a real purpose anymore in Bareos as there are much
better alternatives (MHVTL and QuadstorVTL) nowadays and we should
carry on unmaintained code. The alternatives also see steady
development while vtape hasn't been updates in ages. Also these
alternative VTL emulators implement a true autochanger, encryption
and much more like personality support for all major brands in
real tape hardware which also means we test our tape code much
more thoroughly.
mod - Makefile.in Diff File
mod - autoconf/configure.in Diff File
mod - src/cats/Makefile.in Diff File
mod - src/include/baconfig.h Diff File
mod - src/include/version.h Diff File
mod - src/lib/Makefile.in Diff File
mod - src/stored/Makefile.in Diff File
add - src/stored/backends/Makefile.in Diff File
mod - src/stored/backends/cephfs_device.c Diff File
mod - src/stored/backends/cephfs_device.h Diff File
add - src/stored/backends/generic_tape_device.c Diff File
add - src/stored/backends/generic_tape_device.h Diff File
mod - src/stored/backends/gfapi_device.c Diff File
mod - src/stored/backends/gfapi_device.h Diff File
mod - src/stored/backends/object_store_device.c Diff File
mod - src/stored/backends/object_store_device.h Diff File
mod - src/stored/backends/rados_device.c Diff File
mod - src/stored/backends/rados_device.h Diff File
add - src/stored/backends/unix_fifo_device.c Diff File
add - src/stored/backends/unix_fifo_device.h Diff File
mod - src/stored/backends/unix_file_device.c Diff File
mod - src/stored/backends/unix_file_device.h Diff File
mod - src/stored/backends/unix_tape_device.c Diff File
mod - src/stored/backends/unix_tape_device.h Diff File
rm - src/stored/backends/vtape.c Diff File
rm - src/stored/backends/vtape.h Diff File
mod - src/stored/block.c Diff File
mod - src/stored/btape.c Diff File
mod - src/stored/butil.c Diff File
mod - src/stored/dev.c Diff File
mod - src/stored/dev.h Diff File
mod - src/stored/protos.h Diff File
add - src/stored/sd_backends.c Diff File
add - src/stored/sd_backends.h Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/win32/stored/Makefile Diff File
mod - src/win32/stored/backends/win32_file_device.c Diff File
mod - src/win32/stored/backends/win32_file_device.h Diff File
mod - src/win32/stored/backends/win32_tape_device.c Diff File
mod - src/win32/stored/backends/win32_tape_device.h Diff File

bareos-14.2 da2f4aa5

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Initial commit for TapeAlert support.
mod - autoconf/configure.in Diff File
mod - src/lib/Makefile.in Diff File
mod - src/lib/protos.h Diff File
mod - src/lib/scsi_lli.h Diff File
add - src/lib/scsi_tapealert.c Diff File
add - src/lib/scsi_tapealert.h Diff File
mod - src/plugins/stored/Makefile.in Diff File
add - src/plugins/stored/scsitapealert-sd.c Diff File
mod - src/stored/acquire.c Diff File
mod - src/stored/mount.c Diff File
mod - src/stored/sd_plugins.h Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored_conf.h Diff File

bareos-14.2 73dfa980

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Fix TODO from November 2008.
mod - src/stored/stored.c Diff File
mod - src/tests/testls.c Diff File

bareos-14.2 5ca0ce9a

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Add first attempt for support libcephfs stored backend.
mod - autoconf/configure.in Diff File
mod - src/stored/Makefile.in Diff File
add - src/stored/backends/cephfs_device.c Diff File
add - src/stored/backends/cephfs_device.h Diff File
mod - src/stored/dev.c Diff File
mod - src/stored/dev.h Diff File
mod - src/stored/stored_conf.c Diff File

bareos-14.2 ccea6d8a

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Reschedule on error caused EndTime to be incorrect
mod - src/cats/sql_update.c Diff File
mod - src/dird/jobq.c Diff File

bareos-14.2 33a40c14

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Flush console queued job messages
mod - src/dird/ua_output.c Diff File

bareos-14.2 fb6aa950

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Cleanup lockmgr.h

Some platforms don't like spaces in #define and other preprocessor
commands so lets cleanup this mess.
mod - src/lib/lockmgr.h Diff File

bareos-14.2 09262f24

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Drop last instances of generate_daemon_event()

This is an reminiscent of the old python code. As we replaced it with a
proper plugin interface now everywhere we can drop this old dummy
functions and definitions.
mod - src/tests/testls.c Diff File
mod - src/tools/bsmtp.c Diff File
mod - src/tools/drivetype.c Diff File
mod - src/tools/fstype.c Diff File

bareos-14.2 01ce2f2e

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Allow to read from file type devices multiple times.

Up until now the volume reservation logic only allows you to have one
Job access the same read volume. For file type devices multiple readers
should be no problem and most filesystems are even optimized for this
nowadays by allowing multi parallel sequential read streams which are
handled very efficiently.
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/butil.c Diff File
mod - src/stored/dev.h Diff File
mod - src/stored/dir_cmd.c Diff File
mod - src/stored/protos.h Diff File
mod - src/stored/reserve.c Diff File
mod - src/stored/spool.c Diff File
mod - src/stored/stored.c Diff File
mod - src/stored/vol_mgr.c Diff File

bareos-14.2 29adff04

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Don't check client concurrency for Migrate/Copy Jobs.

Now that we set the actual client for which a migrate/copy is done we
should no longer check the client concurrency as that makes no sense for
a migrate/copy job as the client is not consultated at all so we can run
with as many concurrency as allowed by the storage concurrency.
mod - src/dird/jobq.c Diff File

bareos-14.2 73363e30

2014-07-21 22:46

mvwieringen

Ported: N/A

Details Diff
Make storage status somewhat more informative.
mod - src/stored/status.c Diff File

bareos-14.2 83ab3f06

2014-07-21 18:04

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Fix 64Bit install dir problems

On 64Bits, there were problems when a different install location was
chosen.

Now we only set PROGRAMFILES to PROGRAMFILES64, if the INSTDIR was not
altered.

On uninstall, we do not set the INSTDIR anymore as it is set correctly by
the uninstaller.

Fixes 0000324: Windows installer (64 bits) overwrites user install dir
settings.
Affected Issues
0000324
mod - platforms/win32/winbareos.nsi Diff File

bareos-14.2 546d54ee

2014-07-14 21:20

mvwieringen

Ported: N/A

Details Diff
Move special flags for mig_jcr.

We need to set the duplicate checking and maxtime check flags on
a mig_jcr to disables as soon as we instantiated the mig_jcr as
setup_job() already evaluates if the Job is a duplicate.

Fixes 0000318: copy jobs & cancel duplicates
Affected Issues
0000318
mod - src/dird/migrate.c Diff File

bareos-13.2 53cc7d8d

2014-07-14 21:20

mvwieringen

Ported: N/A

Details Diff
Move special flags for mig_jcr.

We need to set the duplicate checking and maxtime check flags on
a mig_jcr to disables as soon as we instantiated the mig_jcr as
setup_job() already evaluates if the Job is a duplicate.

Fixes 0000318: copy jobs & cancel duplicates
Affected Issues
0000318
mod - src/dird/migrate.c Diff File

bareos-12.4 40673f5d

2014-07-14 21:20

mvwieringen

Ported: N/A

Details Diff
Move special flags for mig_jcr.

We need to set the duplicate checking and maxtime check flags on
a mig_jcr to disables as soon as we instantiated the mig_jcr as
setup_job() already evaluates if the Job is a duplicate.

Fixes 0000318: copy jobs & cancel duplicates
Affected Issues
0000318
mod - src/dird/migrate.c Diff File

bareos-14.2 0aa3983b

2014-07-13 15:56

mvwieringen

Ported: N/A

Details Diff
Added support for Max VirtualFull Interval and Virtual Full Pool override.

Implement a Max Virtual Full Interval analog to the existing Max Full
Interval and a Virtual Full Backup Pool analog to the existing Full
Backup Pool.

Fixes 0000239: Max VirtualFull Interval like Max Full Interval
Affected Issues
0000239
mod - src/dird/dird_conf.c Diff File
mod - src/dird/dird_conf.h Diff File
mod - src/dird/job.c Diff File
mod - src/dird/run_conf.c Diff File
mod - src/dird/scheduler.c Diff File
mod - src/include/jcr.h Diff File

bareos-14.2 02fe8a93

2014-07-11 22:54

mvwieringen

Ported: N/A

Details Diff
Drop the duplicate hash table implementation.

Findlib has a hash table implementation for keeping hardlinked files
its cleaner to use the htable class we already have in the generic
library. So this patch adds support for binary keys in the htable class
so we can store there the combined inode/device key. We now also use the
hash_malloc of the htable class which allocates memory from a big memory
block so it should also scale a bit better.
mod - src/filed/fd_plugins.c Diff File
mod - src/findlib/Makefile.in Diff File
mod - src/findlib/find.c Diff File
mod - src/findlib/find.h Diff File
mod - src/findlib/find_one.c Diff File
add - src/findlib/hardlink.c Diff File
mod - src/findlib/protos.h Diff File
mod - src/lib/htable.c Diff File
mod - src/lib/htable.h Diff File

bareos-14.2 a3d7175c

2014-07-11 18:59

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
renamed package: macbareos to bareos-filedaemon

Renamed the Bareos MacOS package from macbareos to bareos-filedaemon
to be aligned with most of the other platforms.
mod - platforms/osx/Makefile.in Diff File

bareos-14.2 01808dd7

2014-07-11 13:09

mvwieringen

Ported: N/A

Details Diff
Sync LMDB code.
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

bareos-14.2 858a8a64

2014-07-11 13:09

mvwieringen

Ported: N/A

Details Diff
Some tweaks to copy/migrate config.

The folllowing changes were made:

- The copy and migration jobs up until now always needed that you specify a
storage in the Job while most of the time it was never used as the real
storage used also depends on what the original Job used for storage.

This patch tries to relax the need for specifying a read storage and
tries to always use the info of the original pool used by the previous
Job being copied or migrated or the original storage settings of the Job
itself.

When you start a copy or migration you now don't see the somewhat random
read storage that can change along the way but only the write storage.
In essence it should also not matter what read storage is used as long
its the right read storage.

- We can now have migration and copy jobs without a dummy client setting
but this means that the %c variable of the Job will not be filled and as
such you won't see the client name in the completion mail subject. So we
now copy the client pointer from the actual previous Job that is
migrated or copied so that we do have the proper client name and also
the client name of the actual client the migration or copy was done for
an no longer the dummy name it was before.

- Analog to using the client from the previous Job we also use the fileset
and job level of the previous Job so that the copy migrate now always looks
similar to the original Job its copying e.g. no longer a backup level
incremental when copying/migrating a full level Job.

- Try to be smart about when to use data spooling.
Only use the Job data spooling setting when not enabled yet. e.g. when the
JCR already has data spooling enabled we don't want to disable it because
the Job has no explicit setting.

- Restored printing of the client/fileset/level in the copy/migrate overview
something we removed in a previous patch when we removed the explicit need
for specifying these settings. Now that we set the correct information in
the copy/migrate setup we can again print this data and now also show the
correct info if you configure your copy/migrate jobs using the new config
syntax e.g. without setting a dummy client and fileset.
mod - src/console/console.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/job.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/ua_run.c Diff File

bareos-14.2 a8bbf281

2014-07-11 13:09

mvwieringen

Ported: N/A

Details Diff
Create an empty rados object in d_open when O_CREAT is set.
mod - src/stored/backends/rados_device.c Diff File
 First  Prev  1 2 3 ... 10 11 12 13 14 15 16 17 ... 20 ... 30 ... 40 ... 50 ... 57 58 59  Next  Last