]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
MFV r323527: 5815 libzpool's panic function doesn't set global panicstr, ::status...
authoravg <avg@FreeBSD.org>
Wed, 13 Sep 2017 10:34:31 +0000 (10:34 +0000)
committeravg <avg@FreeBSD.org>
Wed, 13 Sep 2017 10:34:31 +0000 (10:34 +0000)
commitde927e701813ee43e67f8ddcb24f21b48c5f3f69
treea1ee5db064b7ea0c886c3fda6c89bc8392b946d8
parent6a23a53f076ba6a48a29e0c4a47359d39f0e294d
MFV r323527: 5815 libzpool's panic function doesn't set global panicstr, ::status not as useful

illumos/illumos-gate@fae6347731c9d3f46b26338313b0422927f29cf6
https://github.com/illumos/illumos-gate/commit/fae6347731c9d3f46b26338313b0422927f29cf6

https://www.illumos.org/issues/5815
  When panic() is called from within ztest, the mdb ::status command isn't as
  useful as it could be since the global panicstr variable isn't updated. We
  should modify the function to make sure panicstr is set, so ::status can
  present the error message just like it does on a failed assertion.

Reviewed by: Matthew Ahrens <mahrens@delphix.com>
Reviewed by: Sebastien Roy <sebastien.roy@delphix.com>
Reviewed by: Gordon Ross <gordon.ross@nexenta.com>
Reviewed by: Rich Lowe <richlowe@richlowe.net>
Approved by: Dan McDonald <danmcd@omniti.com>
Author: Prakash Surya <prakash.surya@delphix.com>
MFC after: 4 weeks
cddl/contrib/opensolaris/lib/libzpool/common/kernel.c