]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Add the quirk entry framework to handle disabling the synchronize cache
authorKenneth D. Merry <ken@FreeBSD.org>
Thu, 8 Oct 1998 05:46:38 +0000 (05:46 +0000)
committerKenneth D. Merry <ken@FreeBSD.org>
Thu, 8 Oct 1998 05:46:38 +0000 (05:46 +0000)
commit8e35ba93ae4b70a1d37bd85226ff4789ebb6ee89
treedb1b6569a9b37219145030e14e0f2e2234f5ce79
parent69761016be942dc4c291e264d32b49f997644539
Add the quirk entry framework to handle disabling the synchronize cache
command on drives that don't like it.  Right now, there's just a bogus
quirk entry in the table that doesn't do anything, but that should be
changed once we get actual inquiry data for drives that don't like the
synchronize cache command.

Also, add a shutdown hook that runs through all direct access peripherals
and runs a synchronize cache on them if they're still open, and if
synchronize cache isn't disabled via a quirk entry.

Add a synchronize cache call at the end of dadump() (again, conditionalized
on the quirk entry), so we can insure that the disk cache contents get
flushed to physical media after a dump.

Check the new quirk entry in daclose() to decide whether or not to
synchronize the cache for a disk at final close.

Reviewed by: gibbs
sys/cam/scsi/scsi_da.c