]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
cam: Don't permit crashdumps on non-pollable devices.
authorJohn Baldwin <jhb@FreeBSD.org>
Thu, 11 Feb 2021 21:51:01 +0000 (13:51 -0800)
committerJohn Baldwin <jhb@FreeBSD.org>
Mon, 22 Mar 2021 20:37:38 +0000 (13:37 -0700)
commit9df8f5a9c684358e1cf713cb85aa72416d92af48
treed48293b0b0d3c12a0b1cb0e39566c65afd3532cc
parent444aff36738a98235306aa002d3dfe74cc475765
cam: Don't permit crashdumps on non-pollable devices.

If a disk's SIM doesn't support polling, then it can't be used to
store crashdumps.  Leave d_dump NULL in that case so that dumpon(8)
fails gracefully rather than having dumps fail at crash time.

Sponsored by: Chelsio

(cherry picked from commit e07ac3f2fd7336e04178d116033989a6c099fec4)
sys/cam/ata/ata_da.c
sys/cam/nvme/nvme_da.c
sys/cam/scsi/scsi_da.c