summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDaniil Baturin <daniil@baturin.org>2026-01-06 15:28:51 +0000
committerGitHub <noreply@github.com>2026-01-06 15:28:51 +0000
commitc51dacd5152dd4575e52edf90e881845a24c48fc (patch)
tree85a185d548fbc732f4e0817bb739f0c4302550c2 /src
parent5cd4b4994aceda5793e887531f3c63070da4f1ed (diff)
downloadvyatta-cfg-c51dacd5152dd4575e52edf90e881845a24c48fc.tar.gz
vyatta-cfg-c51dacd5152dd4575e52edf90e881845a24c48fc.zip
Add a comment to explain the choice of the limit
Diffstat (limited to 'src')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index fd0f07e..1c64c9a 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -91,6 +91,10 @@ private:
/* max size for a file.
* currently this includes value file and comment file.
*/
+ /* 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)