summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@vyos.io>2026-01-06 15:39:36 +0000
committerGitHub <noreply@github.com>2026-01-06 15:39:36 +0000
commitfcbafc2c69090f7b19bfeeef311b5d5e3c9798b9 (patch)
treeae7da511c1b869a7c06e7327ba06a719cdad6604 /src
parent670ef03ee0ba8ef392903246d741ed5d9439ac12 (diff)
parent4d1ab7270b61e350df4c5e50dcc94941aedf75ff (diff)
downloadvyatta-cfg-fcbafc2c69090f7b19bfeeef311b5d5e3c9798b9.tar.gz
vyatta-cfg-fcbafc2c69090f7b19bfeeef311b5d5e3c9798b9.zip
Merge pull request #122 from jestabro/raise-max-set
T6625: raise hardcoded unionfs file size limit
Diffstat (limited to 'src')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index f15b05b..15d797a 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -91,7 +91,14 @@ private:
/* max size for a file.
* currently this includes value file and comment file.
*/
- static const size_t C_UNIONFS_MAX_FILE_SIZE = 262144;
+ /* The limit for file size is mostly relevant for node.val files
+ of multi-value nodes such as firewall groups.
+
+ XXX: The value of 2^20 is arbitrarily chosen to accommodate configs
+ seen in real life.
+ May need to be raised further is larger configs turn out to exist.
+ */
+ static const size_t C_UNIONFS_MAX_FILE_SIZE = 1048576;
// root dirs (constant)
FsPath work_root; // working root (union)