Actions
Bug #4574
closedget_clones_stat does not call zap_count in non-debug kernel
Start date:
2014-02-05
Due date:
% Done:
100%
Estimated time:
Difficulty:
Medium
Tags:
needs-triage
Gerrit CR:
External Bug:
Description
zap_count is enclosed in ASSERT0 macro, which is empty for non-debug kernel.
VERIFY0 macro should be used instead.
Updated by Anonymous over 9 years ago
- Status changed from New to In Progress
- Assignee set to Alexander Stetsenko
- % Done changed from 0 to 100
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.
Updated by Electric Monk over 9 years ago
git commit 03d1795fa6f720eafbee821ad37f4343c391cfe4
Author: Alexander Stetsenko <astetsenko@racktopsystems.com> 4574 get_clones_stat does not call zap_count in non-debug kernel Reviewed by: Matthew Ahrens <mahrens@delphix.com> Reviewed by: Marcel Telka <marcel@telka.sk> Approved by: Gordon Ross <gwr@nexenta.com>
Updated by Alexander Stetsenko over 9 years ago
- Category set to zfs - Zettabyte File System
- Status changed from In Progress to Pending RTI
Updated by Alexander Stetsenko over 9 years ago
- Status changed from Pending RTI to Resolved
Actions