Page MenuHomeFreeBSD

nvmecontrol: select format by sector size
Needs ReviewPublic

Authored by imp on Sat, Sep 19, 3:47 AM.

Details

Summary

Add automatic selection of lbaf value based on a single sector size. The
lbas (the data sector size) is selected based on the power of 2 in the
sector size, and the metadata size is selected by the remainder. If an
lbaf matches these values is used, otherwise we exit with an error.
When there's a tie, we prefer the higher performance.

Manual selection of these values remains as well for times when we
select incorrectly.

Sponsored by: Netflix

Diff Detail

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