bareos: bareos-16.2-droplet 5b6f33e3

Author Committer Branch Timestamp Parent
joergs joergs bareos-16.2-droplet 2018-04-10 20:54 bareos-16.2-droplet 11d98458 Pending
Affected Issues  0000892: bareos-storage-droplet: if configured with unreachable S3 system, backup will terminate with OK
Changeset bareos-storage-droplet: improve error handling

Previos version did not always return an error, if data could not be written.
Especially the load_chunk ignored EIO errors, properly because of a typo.

As the droplet_device in iothread mode relies on asynchronious write-backs,
the new device method flush() has been introduced.
If a droplet_device is configured to use iothreads and unlimited retries,
this will do busy waiting until all data is written to the droplet backend.
In case of a connection problems to the droplet_device, this will be forever.

Note that a bconsole "status storage=..." command will inform about "Pending IO flush requests".

Fixes 0000892: bareos-storage-droplet: if configured with unreachable S3 system, backup will terminate with OK
mod - src/stored/acquire.c Diff File
mod - src/stored/backends/Makefile.in Diff File
mod - src/stored/backends/chunked_device.c Diff File
mod - src/stored/backends/chunked_device.h Diff File
mod - src/stored/backends/droplet_device.c Diff File
mod - src/stored/backends/droplet_device.h Diff File
mod - src/stored/dev.c Diff File
mod - src/stored/dev.h Diff File