]> granicus.if.org Git - zfs/commit
Correctly handle errors from kern_path
authorChris Siebenmann <cks.github@cs.toronto.edu>
Wed, 5 Sep 2018 05:26:56 +0000 (01:26 -0400)
committerTony Hutter <hutter2@llnl.gov>
Fri, 6 Jul 2018 09:46:51 +0000 (02:46 -0700)
commit88ef5b238bef9293eabec8f44432e71260690f9a
treed5d24b188f1797fa72e499b71ea0eb4edbb117f6
parent30d8b8570243fe5b944f26a964cf5204cb1e71e0
Correctly handle errors from kern_path

As a regular kernel function, kern_path() returns errors as negative
errnos, such as -ELOOP. zfsctl_snapdir_vget() must convert these into
the positive errnos used throughout the ZFS code when it returns them
to other ZFS functions so that the ZFS code properly sees them as
errors.

Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Chris Siebenmann <cks.git01@cs.toronto.edu>
Closes #7764
Closes #7864
module/zfs/zfs_ctldir.c