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 <behlendorf1@llnl.gov>
Signed-off-by: Paul Dagnelie <pcd@delphix.com>
Closes openzfs#14479
  • Loading branch information
pcd1193182 authored and lundman committed Mar 3, 2023
1 parent f9ee922 commit e3daf6c
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 e3daf6c

Please sign in to comment.