Page MenuHomeFreeBSD

Fix assertion when ZFS fails to open certain devices
ClosedPublic

Authored by asomers on Nov 27 2017, 10:03 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Dec 13, 5:18 AM
Unknown Object (File)
Nov 16 2024, 5:06 AM
Unknown Object (File)
Oct 17 2024, 3:02 AM
Unknown Object (File)
Oct 17 2024, 3:02 AM
Unknown Object (File)
Oct 17 2024, 3:02 AM
Unknown Object (File)
Sep 20 2024, 10:32 PM
Unknown Object (File)
Sep 18 2024, 2:46 AM
Unknown Object (File)
Sep 14 2024, 8:46 PM
Subscribers

Details

Summary

Fix assertion when ZFS fails to open certain devices

"panic: vdev_geom_close_locked: cp->private is NULL"
This panic will result if ZFS fails to open a device due to either of the
following reasons:

  1. The device's sector size is greater than 8KB.
  2. ZFS wants to open the device RW, but it can't be opened for writing.

The solution is to change the initialization order to ensure that the
assertion will be satisfied.

PR: 221066

Test Plan

The minimal test case as described by the PR, and the ZFS test
suite.

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

This revision is now accepted and ready to land.Nov 30 2017, 9:51 AM
This revision was automatically updated to reflect the committed changes.