Skip to content

Commit

Permalink
add get_chunk_id to vchunk
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonYao287 committed Sep 19, 2023
1 parent 6db84f2 commit 65df8a6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/include/homestore/vchunk.h
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ class VChunk {
const uint8_t* get_user_private() const;
blk_num_t available_blks() const;
uint32_t get_pdev_id() const;
uint16_t get_chunk_id() const;
cshared< Chunk > get_internal_chunk() const;

private:
Expand Down
2 changes: 2 additions & 0 deletions src/lib/device/vchunk.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,7 @@ blk_num_t VChunk::available_blks() const { return m_internal_chunk->blk_allocato

uint32_t VChunk::get_pdev_id() const { return m_internal_chunk->physical_dev()->pdev_id(); }

uint16_t VChunk::get_chunk_id() const { return m_internal_chunk->chunk_id(); }

cshared< Chunk > VChunk::get_internal_chunk() const { return m_internal_chunk; }
} // namespace homestore

0 comments on commit 65df8a6

Please sign in to comment.