bareos: master 0ec05df0

Author Committer Branch Timestamp Parent
arogge arogge master 2021-08-16 18:00 master b9480745 Pending
Changeset tests: reproduce stored backend truncation bug

When a chunk is filled to exactly chunk_size-1 bytes, another write will
ignore the remaining byte and will write to the next chunk. However, the
buffer written in this way will lose its last byte.

The new test sd.droplet_write_read will provoke this situation and check
that data can be re-read correctly.
mod - core/src/tests/CMakeLists.txt Diff File
add - core/src/tests/configs/sd_backend/.gitignore Diff File
add - core/src/tests/configs/sd_backend/bareos-sd.d/device/droplet.conf.in Diff File
add - core/src/tests/configs/sd_backend/droplet.profile.in Diff File
mod - core/src/tests/sd_backend.cc Diff File