blob: 5b06fba3a80b2b2a5a6854b7ca3d98c57b0163a9 [file] [log] [blame]
From dfdf0c7e8b4a5b6b58c5e7536b7463d28cf5d25c Mon Sep 17 00:00:00 2001
From: Seokhwan Kim <sukka.kim@samsung.com>
Date: Sat, 24 Jul 2021 00:25:11 +0900
Subject: [PATCH 2/5] [f2fs] Add configurable options for block size and block
count
Change-Id: I81dfabb913cf9db02135a91021c10094994cb406
---
src/storage/fs_test/fs_test.cc | 4 ++--
src/storage/fs_test/fs_test.schema.json | 10 ++++++++++
2 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/src/storage/fs_test/fs_test.cc b/src/storage/fs_test/fs_test.cc
index 9b4e399b554..537d988bbe8 100644
--- a/src/storage/fs_test/fs_test.cc
+++ b/src/storage/fs_test/fs_test.cc
@@ -464,8 +464,8 @@ std::vector<TestFilesystemOptions> AllTestFilesystems() {
const auto& opt = iter->value[i];
options->push_back(TestFilesystemOptions{.description = opt["description"].GetString(),
.use_fvm = opt["use_fvm"].GetBool(),
- .device_block_size = 512,
- .device_block_count = 196'608,
+ .device_block_size = opt["device_block_size"].GetUint64(),
+ .device_block_count = opt["device_block_count"].GetUint64(),
.fvm_slice_size = 32'768,
.filesystem = filesystem.get()});
}
diff --git a/src/storage/fs_test/fs_test.schema.json b/src/storage/fs_test/fs_test.schema.json
index 8844b1a1224..130feab31c2 100644
--- a/src/storage/fs_test/fs_test.schema.json
+++ b/src/storage/fs_test/fs_test.schema.json
@@ -84,6 +84,16 @@
"use_fvm": {
"description": "True if FVM should be used",
"type": "boolean"
+ },
+ "device_block_count": {
+ "default": 196608,
+ "description": "device_block_count",
+ "type": "integer"
+ },
+ "device_block_size": {
+ "default": 512,
+ "description": "device_block_size",
+ "type": "integer"
}
},
"required": [
--
2.25.1