]> 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>
Thu, 11 Feb 2021 21:52:18 +0000 (13:52 -0800)
commite07ac3f2fd7336e04178d116033989a6c099fec4
treee5bc7982293b31512e953fdc2120baebcc6df5bf
parent447b3557a9cc5f00a301be8404339f21a9a0faa8
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.

Reviewed by: scottl, mav, imp
MFC after: 2 weeks
Sponsored by: Chelsio
Differential Revision: https://reviews.freebsd.org/D28454
sys/cam/ata/ata_da.c
sys/cam/nvme/nvme_da.c
sys/cam/scsi/scsi_da.c