]> git.ipfire.org Git - thirdparty/bacula.git/commit
Fix org#2567 device capabilities overwritten
authorAlain Spineux <alain@baculasystems.com>
Tue, 1 Dec 2020 09:17:12 +0000 (10:17 +0100)
committerEric Bollengier <eric@baculasystems.com>
Tue, 1 Dec 2020 14:15:44 +0000 (15:15 +0100)
commit2b7f1fcfe00ec7be6b40d7bd6d31a58eb634cc14
tree2b5e03bafc2a42ac736e2bc101c6d96bffff85ee
parent7400102c6797ae949ee3734b8582150929c9df3a
Fix org#2567 device capabilities overwritten

- The problem is that the ?numerous? "dev->capabilities |= CAP_LSEEK"
  are overwritten by dev->device_generic_init() in init_dev() that
  does a "dev->capabilities = device->cap_bits;"

- Now Bacula display the second line below just after the 1st one when
  appending a already used volume
= 01-Dec 09:34 127.0.0.1-sd JobId 1: Volume "Vol0001" previously written, moving to end of data.
+ 01-Dec 09:34 127.0.0.1-sd JobId 1: Ready to append to end of Volume "Vol0001" size=21,857,409
  this can be seen in restart-job-test
bacula/src/stored/cloud_dev.c
bacula/src/stored/init_dev.c