From: myoungwon oh Date: Thu, 20 Oct 2022 05:21:49 +0000 (+0900) Subject: crimson/os/seastore/rbm: move test interfaces to the end of the class X-Git-Tag: v18.1.0~974^2~1 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=4ca1995fd50a59a2f39646887f0409c3b7fd2c2f;p=ceph.git crimson/os/seastore/rbm: move test interfaces to the end of the class Signed-off-by: Myoungwon Oh --- 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 8e32238da498..77bff9bf340c 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 {