NVME-EXCLUSION-EDI(1)
π nvme-exclusion-edit β the manual page, but make it make sense
okay so bestie, welcome to NVME-EXCLUSION-EDI(1) from the NVMe Manual β¨ this is the page where we learn how to open an NVMe-oF exclusion list in an editor. yes, like that. it's giving visudo energy and I'm obsessed π
πΈ NAME πΈ
nvme-exclusion-edit β literally: edit an NVMe-oF exclusion list in an editor π
π¦ SYNOPSIS π¦
nvme [<global-options>] exclusion edit [--name=<NAME> | -N <NAME>]
β¨ DESCRIPTION β¨
so the vibe is: you open the NVMe-oF exclusion list named <NAME> in whatever editor the $EDITOR environment variable points at. it's the same spirit as visudo or crontab -e, iykyk π«Ά and if the list doesn't exist yet? no worries, a missing list is created. main character behavior fr.
here's the part where it gets lowkey genius: the list is edited through a private scratch copy and only installed by name when the editor exits. so nothing touches the real thing until you're done π
on save, the result gets validated. if it contains a bad entry, you're offered the chance to re-open the editor and fix it β second chances, we love to see it π
and if the list changed on disk while you were editing? the save is refused. periodt. that way a concurrent editor's changes are never silently overwritten. no cap, that's a whole boundary.
whenever the changes are not saved, the scratch copy is kept and its path is printed, so your edits are recoverable. π§ never lose the work, bestie.
heads up: this command requires root. like, actual root. sorry not sorry π
π OPTIONS π
-N <NAME>,--name=<NAME>β the name of the exclusion list you wanna edit. omit it and you get the default list, which lives at/etc/nvme/exclusions.confβ
π GLOBAL OPTIONS π
these bad boys are defined at the top-level nvme command and are available to this subcommand too, so you can absolutely bring them along π
--dry-runβ print the command that would be executed, but don't actually execute it. it's giving "look but don't touch" π--no-ioctl-probingβ disable probing for 64-bit IOCTL support.--no-retriesβ disable retry logic on transient errors.-o <fmt>,--output-format=<fmt>β set the reporting format tonormal,tabular,'json, orbinary. only one output format at a time, bestie, we do not mix π--output-format-version=<version>β select the output format version. version 1 uses the original field naming, while version 2 (the default) provides more consistent and script-friendly field names. other versions are rejected, so don't even try it π«--quietβ suppress informational messages. errors are still reported, and--quietcancels any--verbosefor the library log level.--set-options=<key=value>[,<key=value>...]β set libnvme library options for this invocation. supported keys areforce-4k,mi-probe-enabled,test-base-dirandtest-sysfs-dir. very "customize your experience" of it β¨--timeout=<ms>β set the timeout for the command in milliseconds.infiniteor-1waits without a time limit (0xffffffff). patience is a virtue π§-v,--verboseβ increase the level of detail in the output. may be specified multiple times to further increase verbosity. stack 'em π
oh and β these options can also be set as machine-wide defaults in nvme-cli.conf(5). a command-line flag always overrides the file. flag wins, every time π
π₯ EXAMPLES π₯
- edit the user list:
# nvme exclusion edit --name user
- use a specific editor:
# EDITOR=vi nvme exclusion edit --name user
π SEE ALSO π
nvme-exclusion-add(1) nvme-exclusion-remove(1) nvme-exclusion-list(1) nvme-disconnect(1)
go read those next, bestie, they're all part of the same friend group π«Ά
π NVME π
part of the nvme-user suite π
and that's the whole page!! π
source/version is NVMe, dated 10/30/2026, page NVME-EXCLUSION-EDI(1) β mwah, love u, go edit some exclusion lists responsibly πβ¨π¦
π¦ where this page comes from
- arch rolling: nvme-cli 3.2-1 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms