Page MenuHomeFreeBSD

nvmecontrol: Use admin device for admin-passthru
Needs ReviewPublic

Authored by imp on Mon, Sep 21, 4:57 PM.

Details

Reviewers
seuros
mav
chuck
chs
ken
Group Reviewers
manpages
Summary

When we're doing admin-passhtru, we need to use the admin device, not
the namespace device. So when we're passed in ndaX or nvdX, we need to
translate that to nvmeY for this command for the admin-passthru command,
but not the io-passthru command. Note namespace nuance in man page.

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 77141
Build 74024: arc lint + arc unit

Event Timeline

imp requested review of this revision.Mon, Sep 21, 4:57 PM
ziaee added inline comments.
sbin/nvmecontrol/nvmecontrol.8
769

This line was 85 characters and will whine the linter.

rpokala added inline comments.
sbin/nvmecontrol/nvmecontrol.8
769

Will the .Pq capture the terminal ., or will that remain outside the parens?

sbin/nvmecontrol/nvmecontrol.8
769

It will go outside. Also, it should never be inside. Parens is like a subshell inside a sentence.

sbin/nvmecontrol/nvmecontrol.8
769

Looking at Figure 141: Opcodes for Admin Commands in the 1.4 spec, there are quite a few Admin commands which list "Yes" under the "Namespace Identifier Used" column. Perhaps I'm misunderstanding something, but is "ignored for admin" what we want?

sbin/nvmecontrol/nvmecontrol.8
769

It means that the kernel will fill in a value. This may be bogus, but it's what the kernel will do. It won't use the value we pass in.
For the I/O endpoint, the kernel doesn't have this behavior.
Not sure why.