mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 10:01:01 +03:00
zfs redact fails when dnodesize=auto
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 #14479
This commit is contained in:
parent
57cfae4a2f
commit
dc72c60ec1
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user