summaryrefslogtreecommitdiff
path: root/src/cstore/unionfs/cstore-unionfs.hpp
diff options
context:
space:
mode:
authorAn-Cheng Huang <ancheng@vyatta.com>2010-12-10 16:07:53 -0800
committerAn-Cheng Huang <ancheng@vyatta.com>2010-12-10 16:07:53 -0800
commit2e921d4c98de3c6342daadbfdfea06f96d440548 (patch)
treed3bf735af7335f36fee11c4ca38bd9a1c4945966 /src/cstore/unionfs/cstore-unionfs.hpp
parentd838fe9235b8ff44938d0513edb7e2bfd96440fe (diff)
downloadvyatta-cfg-2e921d4c98de3c6342daadbfdfea06f96d440548.tar.gz
vyatta-cfg-2e921d4c98de3c6342daadbfdfea06f96d440548.zip
fix for bug 6026
* for unionfs cstore implementation, enforce file size limit on both read and write and raise limit to 256 KB.
Diffstat (limited to 'src/cstore/unionfs/cstore-unionfs.hpp')
-rw-r--r--src/cstore/unionfs/cstore-unionfs.hpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/cstore/unionfs/cstore-unionfs.hpp b/src/cstore/unionfs/cstore-unionfs.hpp
index 3942e01..9799522 100644
--- a/src/cstore/unionfs/cstore-unionfs.hpp
+++ b/src/cstore/unionfs/cstore-unionfs.hpp
@@ -71,7 +71,10 @@ private:
static const string C_VAL_NAME;
static const string C_DEF_NAME;
- static const size_t MAX_FILE_READ_SIZE = 8192;
+ /* max size for a file.
+ * currently this includes value file and comment file.
+ */
+ static const size_t C_UNIONFS_MAX_FILE_SIZE = 262144;
// root dirs (constant)
b_fs::path work_root; // working root (union)