Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2022-03-31 11:38:25 +0300
committerTigran Mkrtchyan <tigran.mkrtchyan@desy.de>2022-09-16 12:10:32 +0300
commitf41209a0614a317857b77d3be80cd7ef4dbb4695 (patch)
tree8175424656aee931f899f0043ffcb6a0b810165b /config
parent8fc4cf67f1553d0d37bb061925867789b27579fe (diff)
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')
-rw-r--r--config/config.sample.php8
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.
*