Change the allowed host configuration file size
Change the max file size to 500KB
Signed-off-by: Ratan Gupta <ratagupt@linux.vnet.ibm.com>
Change-Id: I4abd33b8a8ec0fe240f55bb5f3a27d25656ee40d
diff --git a/include/ibm/management_console_rest.hpp b/include/ibm/management_console_rest.hpp
index 2e3f56c..4f20ec9 100644
--- a/include/ibm/management_console_rest.hpp
+++ b/include/ibm/management_console_rest.hpp
@@ -13,7 +13,9 @@
#include <sdbusplus/message/types.hpp>
#include <utils/json_utils.hpp>
-#define MAX_SAVE_AREA_FILESIZE 200000
+// Allow save area file size to 500KB
+#define MAX_SAVE_AREA_FILESIZE 500000
+
using SType = std::string;
using SegmentFlags = std::vector<std::pair<std::string, uint32_t>>;
using LockRequest = std::tuple<SType, SType, SType, uint64_t, SegmentFlags>;
@@ -106,7 +108,7 @@
{
res.result(boost::beast::http::status::bad_request);
res.jsonValue["Description"] =
- "File size exceeds 200KB. Maximum allowed size is 200KB";
+ "File size exceeds maximum allowed size[500KB]";
return;
}
BMCWEB_LOG_DEBUG << "Creating file " << loc;