From 4ca1995fd50a59a2f39646887f0409c3b7fd2c2f Mon Sep 17 00:00:00 2001 From: myoungwon oh Date: Thu, 20 Oct 2022 14:21:49 +0900 Subject: [PATCH] crimson/os/seastore/rbm: move test interfaces to the end of the class Signed-off-by: Myoungwon Oh --- .../seastore/random_block_manager/rbm_device.h | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/crimson/os/seastore/random_block_manager/rbm_device.h b/src/crimson/os/seastore/random_block_manager/rbm_device.h index 8e32238da4989..77bff9bf340ce 100644 --- a/src/crimson/os/seastore/random_block_manager/rbm_device.h +++ b/src/crimson/os/seastore/random_block_manager/rbm_device.h @@ -96,10 +96,6 @@ public: device_id_t get_device_id() const { return super.config.spec.id; } - // for test - void set_device_id(device_id_t id) { - super.config.spec.id = id; - } magic_t get_magic() const final { return super.config.spec.magic; @@ -168,13 +164,17 @@ public: return super.journal_size; } - void set_journal_size(uint64_t size) { - super.journal_size = size + get_block_size(); - } - static rbm_abs_addr get_journal_start() { return RBM_SUPERBLOCK_SIZE; } + + // interfaces for test + void set_device_id(device_id_t id) { + super.config.spec.id = id; + } + void set_journal_size(uint64_t size) { + super.journal_size = size + get_block_size(); + } }; class EphemeralRBMDevice : public RBMDevice { -- 2.39.5