Changesets: bareos

master 6d12a020

2015-07-28 10:07

mvwieringen

Ported: N/A

Details Diff
Fix compiler warning due to typo.
mod - src/dird/ua_output.c Diff File

master e0f2f48d

2015-07-27 18:45

mvwieringen

Ported: N/A

Details Diff
Fix errors found by Coverity.
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_output.c Diff File

bareos-14.2 b7ea4308

2015-07-26 17:53

mvwieringen

Ported: N/A

Details Diff
Switch to bourne shell constructions.

Some platforms have only a simple bourne shell and this simple changes
make things work on those platforms too.
mod - scripts/bareos-config-lib.sh.in Diff File
mod - scripts/git-info.sh Diff File
mod - src/cats/Makefile.in Diff File
mod - src/cats/drop_bareos_tables.in Diff File
mod - src/cats/grant_bareos_privileges.in Diff File
mod - src/cats/make_bareos_tables.in Diff File

master a285fa67

2015-07-23 17:39

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
also allow system to access tray-monitor.conf
mod - platforms/win32/winbareos.nsi Diff File

master 36072105

2015-07-19 18:19

mvwieringen

Ported: N/A

Details Diff
Switch to bourne shell constructions.

Some platforms have only a simple bourne shell and this simple changes
make things work on those platforms too.
mod - scripts/bareos-config-lib.sh.in Diff File
mod - scripts/git-info.sh Diff File
mod - src/cats/Makefile.in Diff File
mod - src/cats/drop_bareos_tables.in Diff File
mod - src/cats/grant_bareos_privileges.in Diff File
mod - src/cats/make_bareos_tables.in Diff File

master 7bd052fb

2015-07-18 00:00

mvwieringen

Ported: N/A

Details Diff
Add the guid cache pointer to the useragent.

From now on useragent has a guid cache to store the uid and gid to
name mappings. The cache is freed when the useragent is destroyed.

Until now only the interactive ua_tree.c used a guid cache from
uid/gid to user/group mapping but we also want the BVFS api mode 2
(JSON) to have this information for file selection.
mod - src/dird/ua.h Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/dird/ua_server.c Diff File
mod - src/dird/ua_tree.c Diff File

master 05591370

2015-07-16 12:37

mvwieringen

Ported: N/A

Details Diff
Clear encryption and compression flags if unsupported.

Analog to how we clear the ACL and XATTR flags in a fileset if we run a
backup Job on a filed which doesn't support the wanted feature we now
also clear any compression or encryption flag. By clearing the flag
before we start the actual Job we no longer get those nasty errors
in which by the time we call blast_data_to_storage_daemon() we abort
the Job due to missing features.

Clearing compression flags should be no problem and a warning is logged
anyway. For the encryption not being available one could use the new
force encrypt flag in the fileset to fail the Job if encryption is an
absolute requirement.

Fixes 0000496: File daemon without compression support / director with
compression enabled - weird error message
Affected Issues
0000496
mod - src/filed/dir_cmd.c Diff File
mod - src/lib/compression.c Diff File
mod - src/lib/protos.h Diff File

master 39de4603

2015-07-15 18:30

mvwieringen

Ported: N/A

Details Diff
AllowCompression setting doesn't work with LZ4/LZFast

Fixes 0000497: AllowCompression setting doesn't work with LZ4/LZFast
Affected Issues
0000497
mod - src/dird/fd_cmds.c Diff File

bareos-14.2 0d84ff4d

2015-07-15 18:30

mvwieringen

Ported: N/A

Details Diff
AllowCompression setting doesn't work with LZ4/LZFast

Fixes 0000497: AllowCompression setting doesn't work with LZ4/LZFast
Affected Issues
0000497
mod - src/dird/fd_cmds.c Diff File

bareos-13.2 2bebc0da

2015-07-15 18:30

mvwieringen

Ported: N/A

Details Diff
AllowCompression setting doesn't work with LZ4/LZFast

Fixes 0000497: AllowCompression setting doesn't work with LZ4/LZFast
Affected Issues
0000497
mod - src/dird/fd_cmds.c Diff File

master 620475af

2015-07-13 12:45

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Make failing load of backend less confusing.

Change exit from M_ABORT to M_ERROR_TERM on problems with configuration
file, preventing a Segmentation Fault when running bareos-dbcheck on an
uninitialized config file.

M_ABORT forces a traceback but for some failures those only confuse end-users.
mod - src/cats/cats_backends.c Diff File
mod - src/stored/sd_backends.c Diff File

master d4dac4e4

2015-07-10 15:28

mvwieringen

Ported: N/A

Details Diff
Fix copyright.

- Major refactoring and new features contributed by Planets Communications B.V.
mod - src/filed/accurate.c Diff File
mod - src/filed/accurate.h Diff File
mod - src/filed/accurate_htable.c Diff File
mod - src/filed/accurate_lmdb.c Diff File
mod - src/lib/scsi_tapealert.c Diff File
mod - src/lib/scsi_tapealert.h Diff File
mod - src/plugins/dird/python-dir.c Diff File
mod - src/plugins/dird/python-dir.h Diff File
mod - src/plugins/filed/cephfs-fd.c Diff File
mod - src/plugins/filed/gfapi-fd.c Diff File
mod - src/plugins/filed/python-fd.c Diff File
mod - src/plugins/filed/python-fd.h Diff File
mod - src/plugins/filed/rados-fd.c Diff File
mod - src/plugins/stored/autoxflate-sd.c Diff File
mod - src/plugins/stored/python-sd.c Diff File
mod - src/plugins/stored/python-sd.h Diff File
mod - src/plugins/stored/scsitapealert-sd.c Diff File
mod - src/stored/backends/cephfs_device.c Diff File
mod - src/stored/backends/cephfs_device.h Diff File
mod - src/stored/backends/elasto_device.c Diff File
mod - src/stored/backends/elasto_device.h Diff File
mod - src/stored/backends/generic_tape_device.c Diff File
mod - 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
mod - src/stored/backends/unix_fifo_device.c Diff File
mod - 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
mod - src/stored/sd_backends.c Diff File
mod - src/stored/sd_backends.h Diff File
mod - src/win32/plugins/filed/mssqlvdi-fd.c Diff File
mod - src/win32/stored/backends/win32_fifo_device.c Diff File
mod - src/win32/stored/backends/win32_fifo_device.h 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

master 8b033a3d

2015-07-08 18:18

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
JSON: write all keys in lower case

Postgresql and MySQL use different cases for database tables (lower
case vs. CamelCase).
To prevent problems, the JSON output converts all keys to
lowercase.

Fixes 0000493: bareos-webui with MySQL
Affected Issues
0000493
mod - src/lib/mem_pool.c Diff File
mod - src/lib/mem_pool.h Diff File
mod - src/lib/output_formatter.c Diff File

master 71f51db9

2015-06-30 19:00

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Allow to specify arrays in JSON output structure

Before, the JSON output handled arrays implicitly.
The result was partly unexpected behavior,
like some data was overwritten when adding several nameless objects.

The new version destinguishes between

* named objects (object_start(NAME))
* can be added to objects (named and nameless objects)

* nameless objects (object_start(NULL))
* can be added to arrays

* arrays (array_start(NAME))
* can be added by name to an object
* contain nameless objects (object_start(NULL))

The JSON result root element is now an object. It has been an array
before, but external tools (bareos-webui) normally only evaluate the first
array element.
mod - src/cats/sql.c Diff File
mod - src/cats/sql_list.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/lib/output_formatter.c Diff File
mod - src/lib/output_formatter.h Diff File

master 7d739f07

2015-06-30 13:29

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Command .defaults: enable JSON output

This command was only indented for api mode 1,
separating the different entries only by sending them in separate
packets.

This patch makes the command also usable in other api modes,
while leaving api mode 1 unchanged.
mod - src/dird/ua_dotcmds.c Diff File

master 1011da19

2015-06-30 10:51

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Command .sql: enable JSON output

before, the .sql command was only intended for api mode 1
and printed the fields separated by tabs.

Each row was sent as seperate packet, but had no more line
separations, making the output unusable in interactive mode (api=0).

The new implementation reuses the normal sql table output for all api
modes except 1 (the output there is used by bat).

It formats the table nicely and usable in the different api modes.
mod - src/dird/ua_dotcmds.c Diff File

master 8dc1c57f

2015-06-29 19:46

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Cleanup dotcommands

added some comments, sorted commands
mod - src/cats/sql_list.c Diff File
mod - src/dird/ua_dotcmds.c Diff File

master a3f26c57

2015-06-29 15:17

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Show loglevel in debug output
mod - src/lib/message.c Diff File

master 4851d0dd

2015-06-28 22:43

joergs


Committer: mvwieringen

Ported: N/A

Details Diff
Integrate messages to OUTPUT_FORMATTER

This patch integrates message handling into the OUTPUT_FORMATTER so
that messages (info, warnings or errors messages) can not degrade
JSON output anymore.

In JSON API mode, messages are now kept separate from the actual output.
Normally messages will not be send, except if one of the messages is
an error message.
In this case, the whole JSON result will be marked as error and the
current result plus the messages will be delivered as an error message.

Also this patch sets batch mode in api mode JSON.

In batch mode, commands do not show additional prompts.
If not all parameter are given, a command fails to execute.
This is the wanted behaviour for the API mode JSON.
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_dotcmds.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/lib/output_formatter.c Diff File
mod - src/lib/output_formatter.h Diff File

master e52b57d6

2015-06-28 16:34

mvwieringen

Ported: N/A

Details Diff
Refactor list and llist.

Over time the list and llist code really developed into some serious
spaghetti code. To make thing somewhat more like what you expect from
the command its now refactored to do the following:

- Add offset parameter
- Select what to do based on the first keyword after the list or llist
- Only do one action at a time.
- Remove the somewhat strange features like:
- list jobs jobid=1
- Which lists first all jobs and then the specifics for jobid 1
- list fileset jobid=1
- Which lists the fileset used by jobid 1
- The jobs specifics of JobId 1
- list pools jobid=1
- Which lists all pools
- The jobs specifics of JobId 1
mod - src/cats/protos.h Diff File
mod - src/cats/sql.c Diff File
mod - src/cats/sql_list.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_output.c Diff File
mod - src/dird/ua_select.c Diff File

master c47ad826

2015-06-28 12:17

mvwieringen

Ported: N/A

Details Diff
Cleanup Media Record Enbled handling.

- Use enum with the values it can have that mean something when reading
the code.
- Removed whole argument parsing in update_volume() as update_volenabled()
is called which calls get_enabled() which already does the whole parsing.
mod - src/dird/autoprune.c Diff File
mod - src/dird/catreq.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_input.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_update.c Diff File

bareos-14.2 ca3f777d

2015-06-28 12:17

mvwieringen

Ported: N/A

Details Diff
Cleanup Media Record Enbled handling.

- Use enum with the values it can have that mean something when reading
the code.
- Removed whole argument parsing in update_volume() as update_volenabled()
is called which calls get_enabled() which already does the whole parsing.
mod - src/dird/autoprune.c Diff File
mod - src/dird/catreq.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_input.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_update.c Diff File

bareos-13.2 342ecaa5

2015-06-28 12:17

mvwieringen

Ported: N/A

Details Diff
Cleanup Media Record Enbled handling.

- Use enum with the values it can have that mean something when reading
the code.
- Removed whole argument parsing in update_volume() as update_volenabled()
is called which calls get_enabled() which already does the whole parsing.
mod - src/dird/autoprune.c Diff File
mod - src/dird/catreq.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_input.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_update.c Diff File

bareos-12.4 1fac9272

2015-06-28 12:17

mvwieringen

Ported: N/A

Details Diff
Cleanup Media Record Enbled handling.

- Use enum with the values it can have that mean something when reading
the code.
- Removed whole argument parsing in update_volume() as update_volenabled()
is called which calls get_enabled() which already does the whole parsing.
mod - src/dird/autoprune.c Diff File
mod - src/dird/catreq.c Diff File
mod - src/dird/dird.h Diff File
mod - src/dird/newvol.c Diff File
mod - src/dird/ua_cmds.c Diff File
mod - src/dird/ua_input.c Diff File
mod - src/dird/ua_label.c Diff File
mod - src/dird/ua_prune.c Diff File
mod - src/dird/ua_purge.c Diff File
mod - src/dird/ua_update.c Diff File

master c519f119

2015-06-28 00:39

pstorz


Committer: mvwieringen

Ported: N/A

Details Diff
Package also sqlite stuff
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
 First  Prev  1 2 3 ... 70 ... 140 ... 210 ... 280 ... 350 ... 420 ... 490 ... 531 532 533 534 535 536 537 ... 560 ... 630 ... 650 651 652  Next  Last