mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-04-17 08:54:52 +03:00
Remove RAIDZ reconstruct flags from debug defaults
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov> Signed-off-by: Paul Dagnelie <paul.dagnelie@klarasystems.com> Closes #17227
This commit is contained in:
parent
123bfc32f3
commit
0df85ec27c
@ -251,11 +251,11 @@ spa_mode_t spa_mode_global = SPA_MODE_UNINIT;
|
|||||||
|
|
||||||
#ifdef ZFS_DEBUG
|
#ifdef ZFS_DEBUG
|
||||||
/*
|
/*
|
||||||
* Everything except dprintf, set_error, spa, and indirect_remap is on
|
* Everything except dprintf, set_error, indirect_remap, and raidz_reconstruct
|
||||||
* by default in debug builds.
|
* is on by default in debug builds.
|
||||||
*/
|
*/
|
||||||
int zfs_flags = ~(ZFS_DEBUG_DPRINTF | ZFS_DEBUG_SET_ERROR |
|
int zfs_flags = ~(ZFS_DEBUG_DPRINTF | ZFS_DEBUG_SET_ERROR |
|
||||||
ZFS_DEBUG_INDIRECT_REMAP);
|
ZFS_DEBUG_INDIRECT_REMAP | ZFS_DEBUG_RAIDZ_RECONSTRUCT);
|
||||||
#else
|
#else
|
||||||
int zfs_flags = 0;
|
int zfs_flags = 0;
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
@ -63,7 +63,7 @@ log_mustnot_expect 'no such tunable: 0' zdb -o show=0
|
|||||||
log_mustnot_expect 'no such tunable: 1' zdb -o info=1
|
log_mustnot_expect 'no such tunable: 1' zdb -o info=1
|
||||||
|
|
||||||
# can set multiple in same command
|
# can set multiple in same command
|
||||||
log_must eval 'zdb -o zfs_recover=1 -o zfs_flags=512 | xargs | grep -qE "^zfs_recover: 0 -> 1 zfs_flags: 4294965758 -> 512$"'
|
log_must eval 'zdb -o zfs_recover=1 -o zfs_flags=512 | xargs | grep -qE "^zfs_recover: 0 -> 1 zfs_flags: 4294932990 -> 512$"'
|
||||||
|
|
||||||
# can set and show in same command
|
# can set and show in same command
|
||||||
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$"'
|
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$"'
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user