Alexander Stetsenko
2014-02-06 05:50:15 UTC
Hi Folks,
I've found bug in get_clones_stat function.
ASSERT0 is used to call zap_count(...), as result zap_count(...) is
never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always reached.
This means get_clones_stat function never makes up list of clones for
"clones" properties.
The fix is simple - just to replace ASSERT0 on VERIFY0.
Please, review this simple fix.
The patch was already reviewed by Matt.
I need a second reviewer.
issue: https://illumos.org/issues/4574
webrev: http://cr.illumos.org/~webrev/ams/4574/
Thanks.
-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/21175072-86d49504
Modify Your Subscription: https://www.listbox.com/member/?member_id=21175072&id_secret=21175072-abdf7b7e
Powered by Listbox: http://www.listbox.com
I've found bug in get_clones_stat function.
ASSERT0 is used to call zap_count(...), as result zap_count(...) is
never called in non-DEBUG kernel.
As result "count" variable is always 0, and "goto fail" is always reached.
This means get_clones_stat function never makes up list of clones for
"clones" properties.
The fix is simple - just to replace ASSERT0 on VERIFY0.
Please, review this simple fix.
The patch was already reviewed by Matt.
I need a second reviewer.
issue: https://illumos.org/issues/4574
webrev: http://cr.illumos.org/~webrev/ams/4574/
Thanks.
-------------------------------------------
illumos-developer
Archives: https://www.listbox.com/member/archive/182179/=now
RSS Feed: https://www.listbox.com/member/archive/rss/182179/21175072-86d49504
Modify Your Subscription: https://www.listbox.com/member/?member_id=21175072&id_secret=21175072-abdf7b7e
Powered by Listbox: http://www.listbox.com