Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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 openzfs/zfs#4104. The function is tiny enough that my patch could qualify to be called a "rewrite", so I am just copying the function on the basis that a rewrite allows me to license the code under both the CDDL and GPL. Signed-off-by: Richard Yao <[email protected]>
- Loading branch information