]> git.proxmox.com Git - mirror_spl.git/commit - module/spl/spl-vnode.c
OK, some pretty substantial rework here. I've merged the spl-file
authorbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Tue, 18 Mar 2008 23:20:30 +0000 (23:20 +0000)
committerbehlendo <behlendo@7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c>
Tue, 18 Mar 2008 23:20:30 +0000 (23:20 +0000)
commite4f1d29f89b70a06197f86640c9544ffff07920b
tree7d01f33661083f922055a095422797965f7992f9
parent5d86345d3753fd6d873ba40480e1121eb7c28e21
OK, some pretty substantial rework here.  I've merged the spl-file
stuff which only inclused the getf()/releasef() in to the vnode area
where it will only really be used.  These calls allow a user to
grab an open file struct given only the known open fd for a particular
user context.  ZFS makes use of these, but they're a bit tricky to
test from within the kernel since you already need the file open
and know the fd.  So we basically spook the system calls to setup
the environment we need for the splat test case and verify given
just the know fd we can get the file, create the needed vnode, and
then use the vnode interface as usual to read and write from it.

While I was hacking away I also noticed a NULL termination issue
in the second kobj test case so I fixed that too.  In fact, I fixed
a few other things as well but all for the best!

git-svn-id: https://outreach.scidac.gov/svn/spl/trunk@51 7e1ea52c-4ff2-0310-8f11-9dd32ca42a1c
14 files changed:
include/sys/file.h [deleted file]
include/sys/kmem.h
include/sys/vnode.h
modules/spl/Makefile.in
modules/spl/spl-file.c [deleted file]
modules/spl/spl-generic.c
modules/spl/spl-kmem.c
modules/spl/spl-vnode.c
modules/splat/Makefile.in
modules/splat/splat-ctl.c
modules/splat/splat-file.c [deleted file]
modules/splat/splat-internal.h
modules/splat/splat-kobj.c
modules/splat/splat-vnode.c