sdimitro commented on this pull request.

LGTM overall. I just have one question and a small nit.

>  .\"
-.Dd Oct 2, 2016
+.Dd June 21, 2016

[nit] 2017

-       if (zfs_ioctl(hdl, ZFS_IOC_POOL_SCAN, &zc) == 0 ||
-           (errno == ENOENT && func != POOL_SCAN_NONE))
+       /* ECANCELED on a scrub means we resumed a paused scrub */

Even though this comment makes everything clear with respect to the rest of the 
code, I found it a bit confusing that ECANCELED means resume a paused scrub. 
Skimming through other errnos the best alternative I could find is EADV, that I 
read as EADVANCE but apparently is EADVERTISE which is obscure.

That said, I wonder if we could make use of zc.zc_nvlist_dst in the kernel and 
back to the userland to deal with both the ECANCELED and the ENOENT case later 
in this code path, in a cleaner way. Did we consider that?

-- 
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/407#pullrequestreview-48383427
------------------------------------------
openzfs-developer
Archives: 
https://openzfs.topicbox.com/groups/developer/discussions/T693650e65dc896fc-Ma394423fbf836b08aea75c70
Powered by Topicbox: https://topicbox.com

Reply via email to