Skip to content

[pull] master from linux-nvme:master#222

Merged
pull[bot] merged 9 commits into
zengqingfu1442:masterfrom
linux-nvme:master
May 31, 2026
Merged

[pull] master from linux-nvme:master#222
pull[bot] merged 9 commits into
zengqingfu1442:masterfrom
linux-nvme:master

Conversation

@pull

@pull pull Bot commented May 31, 2026

Copy link
Copy Markdown

See Commits and Changes for more details.


Created by pull[bot] (v2.0.0-alpha.4)

Can you help keep this open source service alive? 💖 Please sponsor : )

igaw added 9 commits May 31, 2026 17:12
Make the placement of the global options more flexible. This allows the
user do something like

alias nvme="nvme -v"

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The command line parser sets the nvme_args members correctly now.
Thus no need to look into the opts.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The command line parser sets the nvme_args members correctly now.
Thus no need to look into the opts.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Test the global options placement.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
These are the global short options, no plugin should use it, thus rename
them.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The global option parser claims the -o and -v short option. Thus plugins
can't use them.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
compiler complains with:

  ‘strncpy’ output may be truncated copying 255 bytes from a string of
  length 255 [-Werror=stringop-truncation]

  277 |         strncpy(smart.path, path, sizeof(smart.path) - 1);
      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Using snprintf ensures the smart.path is correctly terminated.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
The global options can be place as first optional argument before the
command.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
Put each command option to a new line to avoid over long lines.

Signed-off-by: Daniel Wagner <wagi@kernel.org>
@pull pull Bot locked and limited conversation to collaborators May 31, 2026
@pull pull Bot added the ⤵️ pull label May 31, 2026
@pull pull Bot merged commit 1dc3ee5 into zengqingfu1442:master May 31, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant