Page MenuHomeFreeBSD

nvmecontrol: logpage will use the controller's vid to choose the formatting function when the vendor name is not provided.
Changes PlannedPublic

Authored by wanpengqian_gmail.com on Jan 7 2022, 1:58 AM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Nov 28, 1:17 PM
Unknown Object (File)
Sun, Nov 24, 8:50 PM
Unknown Object (File)
Sat, Nov 23, 8:34 AM
Unknown Object (File)
Fri, Nov 22, 3:20 PM
Unknown Object (File)
Wed, Nov 20, 9:52 PM
Unknown Object (File)
Wed, Nov 20, 5:59 PM
Unknown Object (File)
Wed, Nov 20, 10:44 AM
Unknown Object (File)
Sun, Nov 10, 11:19 PM

Details

Reviewers
imp
Group Reviewers
manpages
Summary

When displaying a vendor specified logpage, currently we have to specify the vendor name. if the user did not provide the vendor name, we can use the controller's vid to choose the formatting function.

Signed-off-by: Wanpeng Qian <wanpengqian@gmail.com>

Test Plan

query vendor specify logpage without specify vendor name, check the display output.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 43822
Build 40710: arc lint + arc unit

Event Timeline

A more proper approach would be to provide the vendor id when registering a logpage.
later it can be used to match the controller's id.

update print function for logpage vendor help. also update man page.

Beside that, the manual page change LGTM.

sbin/nvmecontrol/nvmecontrol.8
249

By "match", do you mean "select" or "choose"? If so, I would use either of those instead for clarity.

sbin/nvmecontrol/nvmecontrol.8
249

It means "choose". I have updated the man page.

Manual page change LGTM now. Can't speak about the rest.

wanpengqian_gmail.com retitled this revision from nvmecontrol: lookup vendor name based on vendor id when formating logpage to nvmecontrol: logpage will use the controller's vid to choose the formatting function when the vendor name is not provided..Jan 11 2022, 4:09 AM
rpokala added inline comments.
sbin/nvmecontrol/nvmecontrol.8
247

"HGST/WDC"
"Intel"

249

"Vendor ID"

Manual page LGTM at this point; will rereview when it's no longer a WIP.