Page MenuHomeFreeBSD

cam: Don't permit crashdumps on non-pollable devices.
ClosedPublic

Authored by jhb on Feb 1 2021, 11:32 PM.
Tags
None
Referenced Files
F81573234: D28454.id.diff
Thu, Apr 18, 7:44 AM
Unknown Object (File)
Tue, Apr 9, 8:56 PM
Unknown Object (File)
Sun, Mar 31, 12:17 PM
Unknown Object (File)
Feb 29 2024, 6:02 PM
Unknown Object (File)
Feb 15 2024, 6:44 AM
Unknown Object (File)
Feb 13 2024, 9:10 AM
Unknown Object (File)
Feb 12 2024, 3:22 PM
Unknown Object (File)
Feb 1 2024, 1:07 AM
Subscribers

Details

Summary

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.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

I'm happy with this, but all nvme SIMs support polling... But the change isn't wrong, we'll just never fail to take the if into setting d_dump.

sys/cam/nvme/nvme_da.c
901–902

All nvme sims support polling...

This revision is now accepted and ready to land.Feb 1 2021, 11:35 PM