mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-03-22 08:51:30 +03:00
zdb: fix bug with -A flag
Fixes #10544. According to the manpage, zdb -A should ignore all assertions. But it currently does not do that. This commit fixes this bug. Signed-off-by: Shreshth Srivastava <shreshthsrivastava2@gmail.com> Reviewed-by: Rob Norris <rob.norris@klarasystems.com> Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com> Closes #17825
This commit is contained in:
parent
084f8d0077
commit
b0106a1b74
@ -9747,6 +9747,9 @@ main(int argc, char **argv)
|
|||||||
*/
|
*/
|
||||||
spa_mode_readable_spacemaps = B_TRUE;
|
spa_mode_readable_spacemaps = B_TRUE;
|
||||||
|
|
||||||
|
libspl_set_assert_ok((dump_opt['A'] == 1) || (dump_opt['A'] > 2));
|
||||||
|
zfs_recover = (dump_opt['A'] > 1);
|
||||||
|
|
||||||
if (dump_all)
|
if (dump_all)
|
||||||
verbose = MAX(verbose, 1);
|
verbose = MAX(verbose, 1);
|
||||||
|
|
||||||
@ -9757,9 +9760,6 @@ main(int argc, char **argv)
|
|||||||
dump_opt[c] += verbose;
|
dump_opt[c] += verbose;
|
||||||
}
|
}
|
||||||
|
|
||||||
libspl_set_assert_ok((dump_opt['A'] == 1) || (dump_opt['A'] > 2));
|
|
||||||
zfs_recover = (dump_opt['A'] > 1);
|
|
||||||
|
|
||||||
argc -= optind;
|
argc -= optind;
|
||||||
argv += optind;
|
argv += optind;
|
||||||
if (argc < 2 && dump_opt['R'])
|
if (argc < 2 && dump_opt['R'])
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user