Changesets: bareos

master cb3d0b37

2016-05-14 19:13

mvwieringen

Ported: N/A

Details Diff
catalog: Lets pass on try_reconnect and exit_on_fatal

When implementing the new try_reconnect and exit_on_fatal flags to
workaround the fact that we handle a database shutdown badly I seem to
have forgotten to pass the arguments in all needed calls. This patch
fixes that.

From now on also most of the flags to instantiate a new connection to
the database need an explicit setting so we catch these kind of problems
in the future much easier. There is only one default left as last
argument to the function to get a new pooled or unpooled connection
which says if it should return a private database connection or not.
mod - src/cats/bdb_priv.h Diff File
mod - src/cats/cats.c Diff File
mod - src/cats/cats.h Diff File
mod - src/cats/cats_backends.c Diff File
mod - src/cats/cats_backends.h Diff File
mod - src/cats/protos.h Diff File
mod - src/cats/sql_pooling.c Diff File
mod - src/dird/dbcheck.c Diff File
mod - src/dird/dird.c Diff File
mod - src/dird/job.c Diff File
mod - src/dird/stats.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_output.c Diff File

master 8dcaed24

2016-05-14 12:31

mvwieringen

Ported: N/A

Details Diff
lib: Fix wrong call to get_pool_memory() in ini.c

Seems we left a call to get_pool_memory() which clobbers the local
variable in the serialize() function.
mod - src/lib/ini.c Diff File

master a2fe95c3

2016-05-13 18:31

mvwieringen

Ported: N/A

Details Diff
Merge branch 'bareos-15.2'
mod - src/dird/scheduler.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/lib/util.c Diff File
mod - src/lmdb/mdb.c Diff File

master dbddf5b0

2016-05-13 12:51

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Suppress already queued jobs for disabled schedules

When a job already was queued by a schedule for the next
hour, and then the schedule is disabled, the already queued
jobs is still executed.

Fixes 0000659: Suppress already queued jobs for disabled schedules
Affected Issues
0000659
mod - src/dird/scheduler.c Diff File

bareos-14.2 79feb550

2016-05-13 12:51

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Suppress already queued jobs for disabled schedules

When a job already was queued by a schedule for the next
hour, and then the schedule is disabled, the already queued
jobs is still executed.

Fixes 0000659: Suppress already queued jobs for disabled schedules
Affected Issues
0000659
mod - src/dird/scheduler.c Diff File

master 9555e7cd

2016-05-12 20:42

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Improved config file handling.

The old implementation could not distinguish between a config file given
as command line parameter and the compiled default.

Older versions of bareos (15.2.x) did handle command line parameter
as follows:

If the parameter is a path (contains a "/"), it will be as expected (absolute path
or path relative to the current directory).

If the parameter is a filename (does not contain a "/"), it will be treated as relative
to the compiled config directory (e.g. /etc/bareos/).

This is inconsistent.

A prior patch changed this behavior. However, this patch extends the
search for the config file.

No config file paramter given:
* use default config file, fall back to default config include
directories.
Config file parameter is given and it is an existing file:
* this file will be used. It can be specified either an absolute or a
relative path (relative to the current directory).
Config file parameter is given and it is a directory:
* tries to find the default config filename in the configured
directory. If that fails, it tries to find the config include
directories under the configured directory.
Parameter is given but does not exists:
* For backward compability (for programs not adapted to the new
mechanism like bat and tray-monitor):
* try to find the given path relative to the default config directory.
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/dird.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.h Diff File
mod - src/filed/filed_conf.c Diff File
mod - src/filed/filed_conf.h Diff File
mod - src/lib/bsys.c Diff File
mod - src/lib/parse_conf.c Diff File
mod - src/lib/parse_conf.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/stored.c Diff File
mod - src/stored/stored_conf.c Diff File
mod - src/stored/stored_conf.h Diff File

master 3d43771b

2016-05-12 20:42

Frank Bergkemper

Ported: N/A

Details Diff
Adds missing hyperlink to fileset
mod - module/Client/view/client/client/details.phtml Diff File

master 6af83db6

2016-05-12 20:25

stephand

Ported: N/A

Details Diff
Denormalized Filename Table

- For increased DB performance, the File and Filename tables were
denormalized, that means the Name column of the Filename table is now
in the File table. Thus when inserting from the batch table, joins
with the Filename table are no longer necesary. Also no more exclusive
locking of the Filename table which allow parallization.
- The changes were made for PostgreSQL, MySQL and SQLite, but most
testing has been done with PostgreSQL. However, regressions should
work for all DBs.
- TODO:
- The DB version string is still 2004, it must be changed to
distinguish from current 16.2 with non-normalized DB structure.
- The DB update script must be adapted to do the denormalization.
mod - po/bareos.pot Diff File
mod - po/de.po Diff File
mod - po/es.po Diff File
mod - po/fr.po Diff File
mod - po/it.po Diff File
mod - po/nl.po Diff File
mod - po/pl.po Diff File
mod - po/sv.po Diff File
mod - po/uk.po Diff File
mod - src/cats/bvfs.c Diff File
mod - src/cats/bvfs.h Diff File
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/postgresql.sql Diff File
mod - src/cats/ddl/grants/postgresql.sql Diff File
mod - src/cats/sql_cmds.c Diff File
mod - src/cats/sql_create.c Diff File
mod - src/cats/sql_get.c Diff File
mod - src/cats/sql_list.c Diff File
mod - src/dird/fd_cmds.c Diff File
mod - src/dird/migrate.c Diff File
mod - src/dird/query.sql Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/dird/verify.c Diff File
mod - src/tests/bvfs_test.c Diff File

master 5fea60fc

2016-05-12 18:10

Frank Bergkemper

Ported: N/A

Details Diff
Displays the last n dird messages
mod - module/Dashboard/view/dashboard/dashboard/index.phtml Diff File
mod - module/Director/src/Director/Controller/DirectorController.php Diff File
mod - module/Director/src/Director/Model/DirectorModel.php Diff File
mod - module/Director/view/director/director/messages.phtml Diff File

master 5634af7c

2016-05-12 00:41

Joerg Steffens

Ported: N/A

Details Diff
don't specify config file

as behavior to find the config file have changed, when config file is
relative and contains a "/".
Now, reletive config file are always treated relative to the build time
configured config directory.
mod - tests/bextract-test Diff File
mod - tests/bscan-test Diff File

master cc90c49a

2016-05-11 20:36

Frank Bergkemper

Ported: N/A

Details Diff
adds a dird msg ticker to dashboard
mod - module/Dashboard/src/Dashboard/Controller/DashboardController.php Diff File
mod - module/Dashboard/src/Dashboard/Model/DashboardModel.php Diff File
mod - module/Dashboard/view/dashboard/dashboard/index.phtml Diff File

master e8cf81e7

2016-05-11 14:59

pstorz

Ported: N/A

Details Diff
Fix typo Scedules -> Schedules
mod - src/dird/ua_output.c Diff File

bareos-14.2 0c758e69

2016-05-11 14:59

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Fix typo Scedules -> Schedules
mod - src/dird/ua_output.c Diff File

master 2742a826

2016-05-10 21:23

mvwieringen

Ported: N/A

Details Diff
lib: Fix compile problem.
mod - src/lib/bsys.c Diff File

master 023a8da2

2016-05-10 12:14

Joerg Steffens

Ported: N/A

Details Diff
cleanup
mod - manuals/en/main/director-resource-job-definitions.tex Diff File

master 14d068f3

2016-05-10 11:23

pstorz

Ported: N/A

Details Diff
Set VERSION to current sprint
mod - src/include/version.h Diff File

master 2f3b6764

2016-05-10 10:24

joergs

Ported: N/A

Details Diff
typo
mod - src/dird/dird_conf.c Diff File

master 85885b11

2016-05-09 19:25

Marco van Wieringen

Ported: N/A

Details Diff
Show also files for Copy Jobs.
mod - module/Job/view/job/job/index.phtml Diff File

master 5cbb2554

2016-05-09 17:28

mvwieringen

Ported: N/A

Details Diff
lib: Fix expansion of %B jobcode.

We need to add a B suffix to the Job Bytes in human readable format
printing routine.
mod - src/lib/util.c Diff File

bareos-14.2 ee3e0eb3

2016-05-09 17:28

mvwieringen


Committer: joergs

Ported: N/A

Details Diff
lib: Fix expansion of %B jobcode.

We need to add a B suffix to the Job Bytes in human readable format
printing routine.
mod - src/lib/util.c Diff File

master aea99330

2016-05-09 14:06

Frank Bergkemper

Ported: N/A

Details Diff
Display jobs last run status on dashboard
mod - module/Dashboard/src/Dashboard/Controller/DashboardController.php Diff File
mod - module/Dashboard/src/Dashboard/Model/DashboardModel.php Diff File
mod - module/Dashboard/view/dashboard/dashboard/index.phtml Diff File

master 37b2bd81

2016-05-08 18:43

mvwieringen

Ported: N/A

Details Diff
dird: Fix memory leak with configure usage string.

As the old buffer was defined as static inside the
get_configure_parameter() function it means its scope is still active at
the time the daemon ends and it will never be freed and as such
smartalloc whines in the following way:

bareos-dir: smartall.c:414-0 Orphaned buffer: bareos-dir 10016 bytes at
6e6b68 from mem_pool.c:242

The new approach is to use a static global variable and a dynamic
allocate of the POOL_MEM buffer and an extra cleanup function
destroy_configure_usage_string() which is called from terminate_dird().
I also renamed the original function from get_configure_parameter() to
get_configure_usage_string() which describes the function a bit better.
mod - src/dird/dird.c Diff File
mod - src/dird/dird_conf.c Diff File
mod - src/dird/protos.h Diff File
mod - src/dird/ua_cmds.c Diff File

master 6544312a

2016-05-07 22:15

mvwieringen

Ported: N/A

Details Diff
lib: Use POOL_MEM in ini serialize function.

On master we changed the code from POOLMEM ** to POOLMEM *&
but the new Solaris Studio 12.5beta runs into thye following error.

"ini.c", line 426: Error: Overloading ambiguity between
"ConfigFile::serialize(const char*)" and
"ConfigFile::serialize(char*&)".

We now switched to using POOL_MEM which is a proper class and as such
doesn't give an overloading ambiguity. The POOLMEM type is a typedef of
a char pointer and does with this compiler. Strange thing is that it
does not with any earlier versions of the Solaris studio compiler.
mod - src/include/baconfig.h Diff File
mod - src/lib/ini.c Diff File
mod - src/lib/ini.h Diff File
mod - src/lib/mem_pool.c Diff File
mod - src/lib/mem_pool.h Diff File
mod - src/lib/message.c Diff File
mod - src/lib/unittests/ini_test.c Diff File
mod - src/plugins/filed/test-plugin-fd.c Diff File

master 050a7024

2016-05-07 22:12

mvwieringen

Ported: N/A

Details Diff
win32: First preparations for having better VSS hooks.

This adds some changes to the core to allow the plugins to
interact better with the VSS subsystem. It updates the protocol
version for the plugins and removes some events that are not
available anyway.
mod - src/filed/backup.c Diff File
mod - src/filed/dir_cmd.c Diff File
mod - src/filed/fd_plugins.c Diff File
mod - src/filed/fd_plugins.h Diff File
mod - src/plugins/filed/bareos_fd_consts.py Diff File
mod - src/plugins/filed/example-plugin-fd.c Diff File
mod - src/plugins/filed/test-plugin-fd.c Diff File
mod - src/win32/filed/vss.c Diff File
mod - src/win32/filed/vss_generic.c Diff File
mod - src/win32/include/vss.h Diff File

master d09cf9cd

2016-05-07 22:12

mvwieringen

Ported: N/A

Details Diff
plugins: Python overhaul.

- Implement new and missing callback methods for FD python plugins:
- CheckChanges
- AcceptFile
- SetSeenBitmap
- ClearSeenBitmap
- For all plugins:
- UnregisterEvents
- GetInstanceCount
- Return bRC as part of most callbacks that used to
return None so the caller can check if things went ok.
mod - src/plugins/dird/python-dir.c Diff File
mod - src/plugins/dird/python-dir.h Diff File
mod - src/plugins/filed/python-fd.c Diff File
mod - src/plugins/filed/python-fd.h Diff File
mod - src/plugins/stored/python-sd.c Diff File
mod - src/plugins/stored/python-sd.h Diff File
 First  Prev  1 2 3 ... 60 ... 120 ... 180 ... 240 ... 300 ... 360 ... 420 ... 460 461 462 463 464 465 466 ... 480 ... 540 ... 600 ... 612 613 614  Next  Last