ahrens commented on this pull request.


>        */
        if (drc->drc_clone && drc->drc_drrb->drr_fromguid == 0) {
-               uint64_t obj = rwa.max_object + 1;
+               uint64_t obj;
+               if (nvlist_lookup_uint64(begin_nvl, "resume_object", &obj) != 0)
+                       obj = 0;
+               if (rwa.max_object > obj)
+                       obj = rwa.max_object + 1;
+               else
+                       obj++;

[nit] you could always do `obj++` and drop the `+1` on line 3063.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/openzfs/openzfs/pull/631#pullrequestreview-116021889
------------------------------------------
openzfs: openzfs-developer
Permalink: 
https://openzfs.topicbox.com/groups/developer/discussions/T77378623c4494e13-M9783ef8a1417fd1b18504b5f
Delivery options: https://openzfs.topicbox.com/groups

Reply via email to