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)
Fri, Aug 14, 3:57 AM
Unknown Object (File)
Thu, Aug 13, 1:08 AM
Unknown Object (File)
Thu, Aug 13, 12:45 AM
Unknown Object (File)
Tue, Aug 11, 5:46 PM
Unknown Object (File)
Tue, Aug 11, 5:38 PM
Unknown Object (File)
Mon, Aug 10, 12:35 PM
Unknown Object (File)
Mon, Aug 10, 12:10 PM
Unknown Object (File)
Sun, Aug 9, 3:01 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