Discussion:
zdb -AAA, does this make difference?
Andriy Gapon
2014-02-13 15:42:16 UTC
Permalink
I wonder if -A flags for zdb make any difference in illumos.
As far as I can see, in kernel assfail() checks aask and aok.
On the other hand, libc's assfail() / __assfail() always ends up in Abort().

It does not look like libzpool has any override for ASSERT/VERIFY.
So, it does not appear that setting aok in userland has any effect.
Maybe I am missing something?

OTOH, setting zfs_recover does have an effect in the places where
zfs_panic_recover() is explicitly used.
--
Andriy Gapon
George Wilson
2014-02-13 16:07:17 UTC
Permalink
Andriy,

Unfortunately this is a bug in illumos and although we have fixed this
at delphix, the illumos community did not want to expose 'aok' in
userland and rejected the fix. It would be great to fix this in a way
that the community would accept but I've not had time to address this.
If you have any interest on fixing this it would be much appreciated.

Thanks,
George
Post by Andriy Gapon
I wonder if -A flags for zdb make any difference in illumos.
As far as I can see, in kernel assfail() checks aask and aok.
On the other hand, libc's assfail() / __assfail() always ends up in Abort().
It does not look like libzpool has any override for ASSERT/VERIFY.
So, it does not appear that setting aok in userland has any effect.
Maybe I am missing something?
OTOH, setting zfs_recover does have an effect in the places where
zfs_panic_recover() is explicitly used.
Loading...