From: Eric Bollengier Date: Wed, 14 Feb 2024 07:54:45 +0000 (+0100) Subject: Enable Device/SyncOnClose by default X-Git-Tag: Release-15.0.2~42 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=79876a7b24a845283930268b36dab1c062cdf2b3;p=thirdparty%2Fbacula.git Enable Device/SyncOnClose by default After a crash, the last block of a volume might not be flushed properly. Using SyncOnClose should ensure that a job marked as T in the catalog is properly stored on disk. --- diff --git a/bacula/src/stored/stored_conf.c b/bacula/src/stored/stored_conf.c index e5d5cf17e..4c0410b65 100644 --- a/bacula/src/stored/stored_conf.c +++ b/bacula/src/stored/stored_conf.c @@ -202,7 +202,7 @@ static RES_ITEM dev_items[] = { #ifdef SD_DEDUP_SUPPORT {"Dedupengine", store_res, ITEM(res_dev.dedup), R_DEDUP, 0, 0}, #endif - {"SyncOnClose", store_bit, ITEM(res_dev.cap_bits), CAP_SYNCONCLOSE, ITEM_DEFAULT, 0}, + {"SyncOnClose", store_bit, ITEM(res_dev.cap_bits), CAP_SYNCONCLOSE, ITEM_DEFAULT, 1}, {"VolumeEncryption", store_enctype,ITEM(res_dev.volume_encryption), 0, ITEM_DEFAULT, 0}, {NULL, NULL, {0}, 0, 0, 0}