Skip to content

Commit

Permalink
zfs redact fails when dnodesize=auto
Browse files Browse the repository at this point in the history
Add handling to dmu_object_next for the case where *objectp == 0.

Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: Paul Dagnelie <[email protected]>
Closes openzfs#14479
  • Loading branch information
pcd1193182 authored Feb 16, 2023
1 parent 57cfae4 commit dc72c60
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions module/zfs/dmu_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -409,6 +409,8 @@ dmu_object_next(objset_t *os, uint64_t *objectp, boolean_t hole, uint64_t txg)
* hand off to dnode_next_offset() for further scanning.
*/
while (i <= last_obj) {
if (i == 0)
return (SET_ERROR(ESRCH));
error = dmu_object_info(os, i, &doi);
if (error == ENOENT) {
if (hole) {
Expand Down

0 comments on commit dc72c60

Please sign in to comment.