Skip to content

Commit b227a5d

Browse files
author
Paul Dagnelie
committed
Remove RAIDZ reconstruct flags from debug defaults
Signed-off-by: Paul Dagnelie <[email protected]>
1 parent 9acedba commit b227a5d

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

module/zfs/spa_misc.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -251,11 +251,11 @@ spa_mode_t spa_mode_global = SPA_MODE_UNINIT;
251251

252252
#ifdef ZFS_DEBUG
253253
/*
254-
* Everything except dprintf, set_error, spa, and indirect_remap is on
255-
* by default in debug builds.
254+
* Everything except dprintf, set_error, indirect_remap, and raidz_reconstruct
255+
* is on by default in debug builds.
256256
*/
257257
int zfs_flags = ~(ZFS_DEBUG_DPRINTF | ZFS_DEBUG_SET_ERROR |
258-
ZFS_DEBUG_INDIRECT_REMAP);
258+
ZFS_DEBUG_INDIRECT_REMAP | ZFS_DEBUG_RAIDZ_RECONSTRUCT);
259259
#else
260260
int zfs_flags = 0;
261261
#endif

tests/zfs-tests/tests/functional/cli_root/zdb/zdb_tunables.ksh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ log_mustnot_expect 'no such tunable: 0' zdb -o show=0
6363
log_mustnot_expect 'no such tunable: 1' zdb -o info=1
6464

6565
# can set multiple in same command
66-
log_must eval 'zdb -o zfs_recover=1 -o zfs_flags=512 | xargs | grep -qE "^zfs_recover: 0 -> 1 zfs_flags: 4294965758 -> 512$"'
66+
log_must eval 'zdb -o zfs_recover=1 -o zfs_flags=512 | xargs | grep -qE "^zfs_recover: 0 -> 1 zfs_flags: 4294932990 -> 512$"'
6767

6868
# can set and show in same command
6969
log_must eval 'zdb -o zfs_recover=1 -o zfs_recover -o zfs_recover=0 | xargs | grep -qE "^zfs_recover: 0 -> 1 zfs_recover: 1 zfs_recover: 1 -> 0$"'

0 commit comments

Comments
 (0)