From d864cb1f82417f1d91a6fd61ad8acdcf4ed8b71c Mon Sep 17 00:00:00 2001 From: shosseinimotlagh Date: Mon, 5 Feb 2024 11:27:59 -0800 Subject: [PATCH] base is ready Add thin flag Add baseline functions for thin pro --- src/.clang-format | 1 - src/engine/common/homestore_config.fbs | 2 ++ src/homeblks/volume/volume.hpp | 4 ++++ 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/.clang-format b/src/.clang-format index 2f7712008..fdfa11f5e 100644 --- a/src/.clang-format +++ b/src/.clang-format @@ -18,7 +18,6 @@ AlignOperands: false AlignTrailingComments: true AllowShortBlocksOnASingleLine: true AllowShortIfStatementsOnASingleLine: true -AllowShortBlocksOnASingleLine: true AllowShortCaseLabelsOnASingleLine: false # AllowShortFunctionsOnASingleLine: InlineOnly # AllowShortLoopsOnASingleLine: false diff --git a/src/engine/common/homestore_config.fbs b/src/engine/common/homestore_config.fbs index e6dfee051..9b219abe4 100644 --- a/src/engine/common/homestore_config.fbs +++ b/src/engine/common/homestore_config.fbs @@ -142,6 +142,8 @@ table Generic { // percentage of cache used to create indx mempool. It should be more than 100 to // take into account some floating buffers in writeback cache. indx_mempool_percent : uint32 = 110; + + boot_thin_provisioning: bool = false; } table ResourceLimits { diff --git a/src/homeblks/volume/volume.hpp b/src/homeblks/volume/volume.hpp index 619698370..76a905257 100644 --- a/src/homeblks/volume/volume.hpp +++ b/src/homeblks/volume/volume.hpp @@ -464,6 +464,10 @@ class Volume : public std::enable_shared_from_this< Volume > { * @return :- no_error if there is no error. It doesn't throw any exception */ std::error_condition write(const vol_interface_req_ptr& hb_req); + std::error_condition write_internal(const vol_interface_req_ptr& hb_req); + std::error_condition write_thin_provisioning(const vol_interface_req_ptr& hb_req); + + /* Write to lba * @param hb_req :- it expects this request to be created