Skip to content

consider default page size if its zero during lvs grow#72

Merged
Abhinandan-Purkait merged 1 commit intov25.05.x-mayastorfrom
lvs_grow_fix
Apr 21, 2026
Merged

consider default page size if its zero during lvs grow#72
Abhinandan-Purkait merged 1 commit intov25.05.x-mayastorfrom
lvs_grow_fix

Conversation

@abhilashshetty04
Copy link
Copy Markdown
Member

@abhilashshetty04 abhilashshetty04 commented Apr 20, 2026

If the metadata page size is not set, then it means that the blobstore was created with an older version of SPDK. In that case, we can assume that the page size is equal to SPDK_BS_PAGE_SIZE, since that's what it was in older versions

@abhilashshetty04 abhilashshetty04 changed the title consider default page size if its zero consider default page size if its zero during lvs grow Apr 20, 2026
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Updates the blobstore live-grow path to handle legacy super blocks where the metadata page size wasn’t persisted, preventing invalid calculations during an LVS (lvol store) grow.

Changes:

  • Default ctx->super->md_page_size to SPDK_BS_PAGE_SIZE when it is read as 0 in spdk_bs_grow_live()’s super-block load completion path.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread lib/blob/blobstore.c
Comment thread lib/blob/blobstore.c Outdated
Comment thread lib/blob/blobstore.c
Comment thread lib/blob/blobstore.c
If the metadata page size is not set, then it means that the blobstore was created with an older version of SPDK.
In that case, we can assume that the page size is equal to SPDK_BS_PAGE_SIZE, since that's what it was in older versions
Signed-off-by: Abhilash Shetty <abhilash.shetty@datacore.com>
@Abhinandan-Purkait Abhinandan-Purkait merged commit e9baada into v25.05.x-mayastor Apr 21, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants