]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
Enable Device/SyncOnClose by default
authorEric Bollengier <eric@baculasystems.com>
Wed, 14 Feb 2024 07:54:45 +0000 (08:54 +0100)
committerEric Bollengier <eric@baculasystems.com>
Wed, 14 Feb 2024 07:54:45 +0000 (08:54 +0100)
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.

bacula/src/stored/stored_conf.c

index e5d5cf17e0c94133b9d1fa041ea1ed98b7fdeebd..4c0410b659a4fbe56ddfda32c585893a549e7600 100644 (file)
@@ -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}