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
F136353058: D33779.id101084.diff
Mon, Nov 17, 9:25 AM
F136319915: D33779.diff
Mon, Nov 17, 5:10 AM
Unknown Object (File)
Wed, Nov 12, 7:32 PM
Unknown Object (File)
Tue, Nov 11, 3:04 PM
Unknown Object (File)
Wed, Nov 5, 12:02 AM
Unknown Object (File)
Sat, Nov 1, 7:13 AM
Unknown Object (File)
Tue, Oct 28, 10:25 PM
Unknown Object (File)
Mon, Oct 27, 3:23 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 43756
Build 40644: 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 ↗(On Diff #101084)

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

sbin/nvmecontrol/nvmecontrol.8
249 ↗(On Diff #101084)

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 ↗(On Diff #101246)

"HGST/WDC"
"Intel"

249 ↗(On Diff #101246)

"Vendor ID"

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