]> 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)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Wed, 5 Sep 2018 05:26:56 +0000 (22:26 -0700)
commitcfa37548ebc880580782b245f2d233ed540e7a01
tree7ac359a1cd683dafdac813cbd47c8c5524665bc6
parent0405eeea6a8d142171ce352d3dac5f08cd6f70f0
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