]> git.proxmox.com Git - mirror_spl.git/commit
kobj_read_file: Return -1 on vn_rdwr() error
authorRichard Yao <richard.yao@clusterhq.com>
Tue, 15 Dec 2015 16:48:19 +0000 (11:48 -0500)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sat, 23 Jan 2016 18:10:44 +0000 (10:10 -0800)
commitbe29e6a6e682123a009d20b2c5ab0b5393f43a8b
tree3ec79249c27855e74598fe9156623dfeb9b921a1
parent7323da1b2f337f5dab52452e7b765f4a0bc99b78
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
include/sys/kobj.h
module/spl/spl-kobj.c