Page MenuHomeFreeBSD

nda: AC_GETDEV_CHANGED calls media chanaged for sectorsize change
Needs ReviewPublic

Authored by imp on Wed, Feb 25, 8:58 PM.
Tags
None
Referenced Files
F146441711: D55521.diff
Mon, Mar 2, 5:36 PM
Unknown Object (File)
Sun, Mar 1, 1:13 PM
Unknown Object (File)
Sun, Mar 1, 6:24 AM
Unknown Object (File)
Sun, Mar 1, 3:40 AM
Unknown Object (File)
Thu, Feb 26, 10:07 AM
Unknown Object (File)
Thu, Feb 26, 8:37 AM
Unknown Object (File)
Thu, Feb 26, 4:49 AM
Unknown Object (File)
Thu, Feb 26, 3:42 AM
Subscribers

Details

Reviewers
mav
cperciva
chuck
chs
Group Reviewers
cam
Summary

When the sector size changes, we assume it's new media. When the
mediasize changes, we'll just resize the disk (we get called for both
events). When neither have changed, don't call either.

Some NVMe drives (but not all) post a async event on page 4 with the
sector size changes via a FORMAT command. We'll notice the new media
right away, rather than the next device open. As a practical effect,
this just means that certain geom operations will see it sooner. Since
most drive interaction goes through open, that will catch those drives
that do not post this event well enough.

Sponsored by: Netflix

Diff Detail

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