zfsonlinux port of work by Christopher Siden to address illumos issue 4631 #2480
bprotopopov:master% was force-pushed and no longer has any new commits.
Pushing new commits will allow the pull request to be re-opened.
Pushing new commits will allow the pull request to be re-opened.