Page MenuHomeFreeBSD

nvmecontrol: add format dry-run support
AcceptedPublic

Authored by imp on Sat, Sep 19, 3:48 AM.
Tags
None
Referenced Files
F175209750: D59835.id.diff
Fri, Oct 9, 3:10 AM
Unknown Object (File)
Wed, Oct 7, 9:44 AM
Unknown Object (File)
Tue, Oct 6, 5:16 PM
Unknown Object (File)
Mon, Oct 5, 2:41 PM
Unknown Object (File)
Mon, Oct 5, 3:57 AM
Unknown Object (File)
Sun, Oct 4, 5:04 AM
Unknown Object (File)
Fri, Oct 2, 6:14 PM
Unknown Object (File)
Thu, Oct 1, 11:53 AM
Subscribers

Details

Summary

Add -n/--dry-run to resolve and print the Format NVM command without
submitting it. This lets users verify namespace selection and format
parameters before making destructive media changes.

Sponsored by: Netflix

Diff Detail

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

Event Timeline

imp requested review of this revision.Sat, Sep 19, 3:48 AM
This revision is now accepted and ready to land.Fri, Oct 2, 8:03 AM
chuck added inline comments.
sbin/nvmecontrol/format.c
325

Super, extreme nit.
There's a bit of inconsistency in the driver around whether logging prints NSID as a decimal or hexadecimal value. From a quick grep, it appears more (2 of 3) use the decimal format. Given that most values are single digit anyway, this ends mostly fine.