Skip to content

Commit

Permalink
base is ready
Browse files Browse the repository at this point in the history
Add thin flag
Add baseline functions for thin pro
  • Loading branch information
shosseinimotlagh committed Mar 4, 2024
1 parent 6be0185 commit d864cb1
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/.clang-format
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ AlignOperands: false
AlignTrailingComments: true
AllowShortBlocksOnASingleLine: true
AllowShortIfStatementsOnASingleLine: true
AllowShortBlocksOnASingleLine: true
AllowShortCaseLabelsOnASingleLine: false
# AllowShortFunctionsOnASingleLine: InlineOnly
# AllowShortLoopsOnASingleLine: false
Expand Down
2 changes: 2 additions & 0 deletions src/engine/common/homestore_config.fbs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
4 changes: 4 additions & 0 deletions src/homeblks/volume/volume.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d864cb1

Please sign in to comment.