HomeFreeBSD

nda: React to namespace change events

Description

nda: React to namespace change events

Register for AC_GETDEV_CHANGED. When we receive a namespace
notification, we only create a new device if it was unconfigured. If it
was configured, generate this async event. Rely on the fact that we
reconstruct namespace to just get the data from the identify data and
call disk_resised.

Reviewed by: imp
Differential Revision: https://reviews.freebsd.org/D33032

(cherry picked from commit 86d3ec359a56d1b5d015718bd19ef4bda681a032)

Details

Provenance
wanpengqian_gmail.comAuthored on Tue, Nov 18, 3:24 PM
impCommitted on Wed, Nov 19, 4:10 AM
Reviewer
imp
Differential Revision
D33032: nvme: nvd/nda call disk_resize() when namespace changed async event happened
Parents
rG31412fda9fa7: nvme: Refactor geom setting to function.
Branches
Unknown
Tags
Unknown