]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
5815 libzpool's panic function doesn't set global panicstr, ::status not as useful
authoravg <avg@FreeBSD.org>
Wed, 13 Sep 2017 10:33:09 +0000 (10:33 +0000)
committeravg <avg@FreeBSD.org>
Wed, 13 Sep 2017 10:33:09 +0000 (10:33 +0000)
commit9e353865b23d4b23782cc04676ec26e3c0ed4ad1
treea89daa1e9c9ccc201a8174f592d305e35d8b8e0c
parent440adde3b3d474ad204f80f3459dd59de10cf5bc
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>
lib/libzpool/common/kernel.c