]> git.ipfire.org Git - thirdparty/bacula.git/commit
Detect unsolvable volume cycle in split_bsr_loop()
authorAlain Spineux <alain@baculasystems.com>
Wed, 17 Jan 2024 15:25:45 +0000 (16:25 +0100)
committerEric Bollengier <eric@baculasystems.com>
Wed, 4 Dec 2024 08:14:22 +0000 (09:14 +0100)
commit8bdeca571d9d0044b93a985ad7ccc12fba9f400c
tree2874cd7c2e929aef47695bd9adfb61a188ca3a2c
parentc78a1ef0f51eac09156f38d92999df1a50941a8d
Detect unsolvable volume cycle in split_bsr_loop()

- Fix empty part: when a cycle inside a job was detected, the function
  was creating an empty part (splitting at offset 0), that was causing
  a fatal error in the restore
- this make that the first part to restore is totally empty and
  generate the messages from the SD and from the FD:
  SD - Fatal error: No Volume names found for restore.
  FD - Fatal error: job.c:3694 Bad response from SD to Read Data command. Wanted 3000 OK data

- in the trace file we have a split at off=0
  BSR: Split the BSR at off=0 at the beginning of jobnum=1 ....

Signed-off-by: Alain Spineux <alain@baculasystems.com>
bacula/src/dird/bsr.c
bacula/src/dird/protos.h
bacula/src/dird/restore.c
bacula/src/dird/vbackup.c