HomeFreeBSD

kobj_read_file: Return -1 on vn_rdwr() error

Description

kobj_read_file: Return -1 on vn_rdwr() error

I noticed that the SPL implementation of kobj_read_file is not correct
after comparing it with the userland implementation of kobj_read_file()
in zfsonlinux/zfs#4104.

Note that we no longer pass RLIM64_INFINITY with this, but our vn_rdwr
implementation did not support it anyway, so there is no difference.

Signed-off-by: Richard Yao <ryao@gentoo.org>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #513

Details

Provenance
Richard Yao <richard.yao@clusterhq.com>Authored on Dec 15 2015, 4:48 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jan 23 2016, 6:10 PM
Parents
rG7323da1b2f33: Create spl-kmod-debuginfo rpm with redhat spec file
Branches
Unknown
Tags
Unknown