Page MenuHomeFreeBSD

nda: Rescan the drive on open
ClosedPublic

Authored by imp on Feb 25 2026, 8:58 PM.
Tags
None
Referenced Files
Unknown Object (File)
Mon, Oct 5, 2:23 AM
Unknown Object (File)
Mon, Oct 5, 2:20 AM
Unknown Object (File)
Mon, Oct 5, 1:55 AM
Unknown Object (File)
Mon, Oct 5, 12:47 AM
Unknown Object (File)
Thu, Oct 1, 11:49 AM
Unknown Object (File)
Mon, Sep 28, 6:21 PM
Unknown Object (File)
Fri, Sep 25, 1:42 PM
Unknown Object (File)
Fri, Sep 25, 11:21 AM
Subscribers

Details

Summary

SCSI and ATA drives rescan the drive on opens to catch changes to the
disk. We do it here to so we catch if a drive has been FORMATed or
SANITIZEd with different parameters. We don't use xpt_rescan() since we
don't want to interfere with boot or keep all busses locked (this rescan
won't change the bus, so we don't need the CAM topo lock).

Sponsored by: Netflix

Diff Detail

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