Allow `zdb -r` to understand object ids as well

Sponsored-by: Klara, Inc.
Sponsored-By: Wasabi Technology, Inc.
Signed-off-by: Allan Jude <allan@klarasystems.com>
This commit is contained in:
Allan Jude 2024-06-28 00:35:28 +00:00
parent c98295eed2
commit f5471a5d4c
1 changed files with 5 additions and 1 deletions

View File

@ -9372,7 +9372,11 @@ main(int argc, char **argv)
if (argc != 3)
usage();
dump_opt['v'] = verbose;
error = dump_path(argv[0], argv[1], &object);
if (zdb_numeric(argv[1])) {
object = strtoull(argv[1], NULL, 0);
} else {
error = dump_path(argv[0], argv[1], &object);
}
if (error != 0)
fatal("internal error: %s", strerror(error));
}