Check the inline code docs.
The revision of the script on my system was this one.
I don't have the time at the moment to submit a bug and/or patch and/or commit directly to HEAD.
I did a quick study of the Debian bug reporting process and the reportbug
tool.
cite: https://www.debian.org/Bugs/Reporting
I will try to find the time to report the improvement and link the maintainers to this gist.
example of the xargs
process pool with MAX_PARALLEL_SCRUBS=3
xargs -L 1 --max-args=1 --max-procs=3 -I{} -- /bin/sh -c $1 zed-scrub.sh {}
\_ /bin/sh -c $1 zed-scrub.sh zpool scrub -w rpool
| \_ zpool scrub -w rpool
\_ /bin/sh -c $1 zed-scrub.sh zpool scrub -w store1
| \_ zpool scrub -w store1
\_ /bin/sh -c $1 zed-scrub.sh zpool scrub -w store1-backup
\_ zpool scrub -w store1-backup