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
F160511405: D28454.id83250.diff
Thu, Jun 25, 6:00 AM
Unknown Object (File)
Tue, Jun 23, 7:35 PM
Unknown Object (File)
Mon, Jun 22, 1:46 AM
Unknown Object (File)
Fri, Jun 19, 11:36 PM
Unknown Object (File)
Thu, Jun 18, 12:44 PM
Unknown Object (File)
Sat, Jun 13, 10:29 PM
Unknown Object (File)
May 16 2026, 5:56 AM
Unknown Object (File)
May 15 2026, 3:26 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
rS FreeBSD src repository - subversion
Lint
Lint Passed
Unit
No Test Coverage
Build Status
Buildable 36663
Build 33552: arc lint + arc unit

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

All nvme sims support polling...

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