Martin Belanger 88cda4d7fd scripts: check with Coccinelle for open-coded shr_startswith()
Add a semantic patch which finds strncmp() with the length of the
prefix, and ccan's strstarts(), and a test for it. strncmp() used
for ordering is not changed.

Signed-off-by: Martin Belanger <martin.belanger@dell.com>
2026-11-17 18:49:43 +01:00
2026-09-15 19:38:39 +02:00
2022-01-07 17:00:05 +01:00
2026-03-10 14:13:15 +01:00
2026-10-10 17:51:21 +02:00
2015-06-02 09:27:54 -06:00
2026-11-03 09:46:17 +01:00

nvme-cli and libnvme

nvme-cli is the command line tool for managing NVMe devices. It is built on the libnvme library. Together they support local NVMe drives, NVMe-oF fabrics (TCP, RDMA, FC), and many vendor-specific plugins.

For more information on the NVM Express standard, see https://nvmexpress.org.

The project is developed on GitHub at https://github.com/linux-nvme/nvme-cli.

Subscribe to linux-nvme@lists.infradead.org for Linux NVMe discussions and development. The list is archived at https://lists.infradead.org/mailman/listinfo/linux-nvme

Shared nvme-cli libnvme
Build MesonBuild PyBuild
Static analysis Coverity Scan Build Status clang-analyzer
Nightly tests Nightly
Test coverage codecov
Docs nvme-cli Docs libnvme Docs
Package PyPI PyPI - Wheel
License nvme-cli License libnvme License

Quick start

$ meson setup .build
$ meson compile -C .build
# meson install -C .build

It is also packaged by most Linux distributions (Alpine, Arch, Debian, Fedora, FreeBSD, Gentoo, Ubuntu, Nix(OS), openSUSE, ...) as nvme-cli.

Once installed, find the top-level documentation with man nvme, or a short summary with nvme help.

Documentation

Topic Where
Building from source: dependencies, alternative build systems, packaging, plugin selection BUILDING.md
Configuring host identity, NVMe-oF connections, and multi-orchestrator coordination CONFIGURATION.md
Pre-built binaries, reproducing CI builds, memory/sanitizer testing TESTING.md
libnvme coverage against NVMe specifications, chapter by chapter SPEC-COVERAGE.md
Privilege separation and the decoder sandbox: design, threat model, helper protocol PRIVSEP.md
Command/plugin man pages man nvme, or browse Documentation
Contributing: adding commands/plugins, API naming, commit & PR workflow CONTRIBUTING.md
Reporting security vulnerabilities SECURITY.md
Release history NEWS.md

AI-assisted development resources live in the companion repository nvme-cli-ai; see CONTRIBUTING.md for how they fit into the workflow.

S
Description
No description provided
Readme GPL-2.0 53 MiB
Languages
C 61.5%
Python 18.6%
Roff 10.5%
Shell 3.8%
PowerShell 2.5%
Other 2.9%