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)
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
Unknown Object (File)
Fri, Sep 25, 6:45 AM
Unknown Object (File)
Fri, Sep 25, 2:24 AM
Unknown Object (File)
Sep 1 2026, 4:08 PM
Unknown Object (File)
Aug 27 2026, 3:25 PM
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 Not Applicable
Unit
Tests Not Applicable