Skip to content

feat(proto): add creation_size to ShardGroupExpandRequest#113

Draft
c3y1huang wants to merge 2 commits into
longhorn:mainfrom
c3y1huang:1061-v2-sharding-kbench-failure
Draft

feat(proto): add creation_size to ShardGroupExpandRequest#113
c3y1huang wants to merge 2 commits into
longhorn:mainfrom
c3y1huang:1061-v2-sharding-kbench-failure

Conversation

@c3y1huang

Copy link
Copy Markdown
Contributor

Which issue(s) this PR fixes:

Issue longhorn/longhorn#1061

What this PR does / why we need it:

See longhorn/go-spdk-helper#300 (comment).

Special notes for your reviewer:

None

Additional documentation or context

None

@c3y1huang c3y1huang self-assigned this Jul 22, 2026
@c3y1huang
c3y1huang force-pushed the 1061-v2-sharding-kbench-failure branch 2 times, most recently from 2d58d33 to 3d01351 Compare July 22, 2026 10:00
longhorn/longhorn-1061

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
longhorn/longhorn-1061

Signed-off-by: Chin-Ya Huang <chin-ya.huang@suse.com>
@c3y1huang
c3y1huang force-pushed the 1061-v2-sharding-kbench-failure branch from 3d01351 to 5cbacb0 Compare July 23, 2026 06:08
@c3y1huang
c3y1huang requested a review from Copilot July 23, 2026 06:08

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR extends the SPDK RPC protobuf for shard-group expansion to carry the shard group’s original creation-time volume size (creation_size), enabling callers (e.g., the engine/controller) to cap in-place expansion based on lvstore metadata sizing constraints.

Changes:

  • Add creation_size to ShardGroupExpandRequest and ShardGroupExpandPrecheckRequest in shardgroup.proto.
  • Regenerate Go protobuf bindings to include the new fields and accessors.
  • Regenerate Python protobuf bindings to include the updated message descriptors.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
protobuf/spdkrpc/shardgroup.proto Adds creation_size to expand and precheck request messages with explanatory comments.
pkg/generated/spdkrpc/shardgroup.pb.go Regenerated Go protobuf output reflecting the new CreationSize fields and getters.
generated-py/spdkrpc/shardgroup_pb2.py Regenerated Python protobuf output reflecting the new creation_size fields in descriptors.
Files not reviewed (1)
  • generated-py/spdkrpc/shardgroup_pb2.py: Generated file

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

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.

2 participants