Page MenuHomeFreeBSD

nvmecontrol: Factor out namespace Identify printing
Needs ReviewPublic

Authored by ken on Wed, Sep 9, 3:29 PM.
Tags
None
Referenced Files
F174076738: D59530.id188140.diff
Wed, Sep 30, 10:53 AM
F174031539: D59530.diff
Wed, Sep 30, 2:43 AM
Unknown Object (File)
Tue, Sep 29, 6:40 PM
Unknown Object (File)
Tue, Sep 29, 4:28 PM
Unknown Object (File)
Tue, Sep 29, 1:28 AM
Unknown Object (File)
Mon, Sep 28, 8:01 PM
Unknown Object (File)
Sun, Sep 27, 10:10 PM
Unknown Object (File)
Sat, Sep 26, 6:56 AM
Subscribers

Details

Reviewers
imp
Group Reviewers
cam
Summary

Move print_namespace() from identify.c to identify_ext.c and rename
it to nvme_print_namespace(), to match nvme_print_controller().
This allows other consumers (notably camcontrol(8)) to print NVMe
namespace Identify data.

No functional changes intended.

sbin/nvmecontrol/identify.c:
Remove print_namespace(), and call nvme_print_namespace()
instead.

sbin/nvmecontrol/identify_ext.c:
Add nvme_print_namespace(), moved here from identify.c.

sbin/nvmecontrol/nvmecontrol.h:
Remove the print_namespace() prototype.

sbin/nvmecontrol/nvmecontrol_ext.h:
Add the nvme_print_namespace() prototype.

sbin/nvmecontrol/ns.c:
Include nvmecontrol_ext.h, and rename print_namespace() calls
to nvme_print_namespace().

Sponsored by: Spectra Logic

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 77505
Build 74388: arc lint + arc unit

Event Timeline

ken requested review of this revision.Wed, Sep 9, 3:29 PM
This revision is now accepted and ready to land.Wed, Sep 9, 7:30 PM
ken edited the summary of this revision. (Show Details)

Rebase on current head. The moved nvme_print_namespace() now carries the FLBAS Format Index Upper fix from D59627 (2c41f7d8), which landed inside print_namespace() after this review was created.

This revision now requires review to proceed.Tue, Sep 29, 9:11 PM