Skip to content

Conversation

@igaw
Copy link
Collaborator

@igaw igaw commented Jan 9, 2026

A few cleanups as result from workong on adding struct nvme_global_ctx to the API.

igaw added 5 commits January 5, 2026 16:17
Move all symbols into the 2.0 section.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The commom name for linker scripts uses the .ld extension, thus rename
the libnvme.map to libnvme.ld

Signed-off-by: Daniel Wagner <wagi@kernel.org>
When debugging it's useful to get the exact command line which is used.
This string can then be directly given to 'gdb --args'.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
nvme_update_config is used to dump the current configuration to the
either stdout or a config file. There is also nvme_dump_config which
does almost the same thing. The only difference is that
nvme_update_config is testing if the something has been modified.

The modified tracking happens on a global level and almost all
operations on the tree will set the modified flag. This is actually not
really needed. nvme-cli uses for the 'config' command which expects
that the config is updated. One could argue that the config should not
be written when nothing changes. But this could be done in a different
way, e.g. create a temp config and compare it to the original and only
overwrite the original if something changes. But no one complained that
the config is overwritten all the time so far (remember the modified
flag is almost certainly always set).

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Follow the same order for describing the fabrics configuration. This
will make is simpler to replace fabrics_args with nvmf_context.

While at it also fix the assignments alignment.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@igaw igaw merged commit c284f2b into linux-nvme:master Jan 9, 2026
20 checks passed
@igaw igaw deleted the cleanups branch January 9, 2026 06:00
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.

1 participant