diff options
author | Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> | 2022-03-31 10:38:25 +0200 |
---|---|---|
committer | Tigran Mkrtchyan <tigran.mkrtchyan@desy.de> | 2022-09-16 11:10:32 +0200 |
commit | f41209a0614a317857b77d3be80cd7ef4dbb4695 (patch) | |
tree | 8175424656aee931f899f0043ffcb6a0b810165b /config/config.sample.php | |
parent | 8fc4cf67f1553d0d37bb061925867789b27579fe (diff) | |
download | nextcloud-server-f41209a0614a317857b77d3be80cd7ef4dbb4695.tar.gz nextcloud-server-f41209a0614a317857b77d3be80cd7ef4dbb4695.zip |
config: add a switch to control truncate before update
To avoid extra truncate on non WORM file systems, add a new config
option `localstorage.unlink_on_truncate`, which defaults to false.
The OC\Files\Storage\Local is update to respect that option.
Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
Diffstat (limited to 'config/config.sample.php')
-rw-r--r-- | config/config.sample.php | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/config/config.sample.php b/config/config.sample.php index 05fba5777eb..bcd46381ebd 100644 --- a/config/config.sample.php +++ b/config/config.sample.php @@ -1888,6 +1888,14 @@ $CONFIG = [ 'localstorage.umask' => 0022, /** + * This options allows storage systems that don't allow to modify existing files + * to overcome this limitation by removing the files before overwriting. + * + * Defaults to ``false`` + */ +'localstorage.unlink_on_truncate' => false, + +/** * EXPERIMENTAL: option whether to include external storage in quota * calculation, defaults to false. * |