[RHELMISC-32989] add deviceless message support for capacity queries#100
Open
bjohnsto wants to merge 2 commits into
Open
[RHELMISC-32989] add deviceless message support for capacity queries#100bjohnsto wants to merge 2 commits into
bjohnsto wants to merge 2 commits into
Conversation
2fef0fa to
d3f0ab9
Compare
d3f0ab9 to
9602278
Compare
8dc7a5e to
5f2ab23
Compare
Add support for target messages that don't require an active device instance. This allows querying target-specific information without creating a device. Adds dm_deviceless_message_fn typedef and deviceless_message field to struct target_type in device-mapper.h. Modifies dm-ioctl.c to route messages with device name "." to the target's deviceless_message handler. The message format is: dmsetup message . 0 <target-name> <message> [args...] The target name is extracted from argv[0] and the remaining arguments are passed to the target's deviceless_message function. Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
Add a deviceless message handler to the VDO target that allows querying VDO capacity information without an active device instance. The "capacity" message accepts logical blocks, physical blocks, slab size, index memory, and index sparse parameters, simulates VDO initialization, and returns a structured response with logical blocks, data blocks, max data blocks, slab count, and max slab count. Also adds vdo_compute_logical_blocks() to correctly compute the default logical size by subtracting block map forest overhead from available data blocks. Bumps VDO target version to 9.3.0. Signed-off-by: Bruce Johnston <bjohnsto@redhat.com>
5f2ab23 to
18210e3
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add a deviceless message handler to the VDO target that allows querying VDO capacity information without an active device instance. The "capacity" message accepts logical blocks, physical blocks, slab size, index memory, and index sparse parameters, simulates VDO initialization, and returns a structured response with logical blocks, data blocks, max data blocks, slab count, and max slab count.
Also adds vdo_compute_logical_blocks() to correctly compute the default logical size by subtracting block map forest overhead from available data blocks.
Bumps VDO target version to 9.3.0.