Add linux kernel device support
authorBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 26 Aug 2010 18:44:39 +0000 (11:44 -0700)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 31 Aug 2010 20:41:50 +0000 (13:41 -0700)
commit325f023544bbec6a478882c442e15304ee379759
treee41ddbab7f373fc7fd43390c4ba05ea722729e68
parent47d0ed1e6f8a8ee67492ec63173a27df8e4ca059
Add linux kernel device support

This branch contains the majority of the changes required to cleanly
intergrate with Linux style special devices (/dev/zfs).  Mainly this
means dropping all the Solaris style callbacks and replacing them
with the Linux equivilants.

This patch also adds the onexit infrastructure needed to track
some minimal state between ioctls.  Under Linux it would be easy
to do this simply using the file->private_data.  But under Solaris
they apparent need to pass the file descriptor as part of the ioctl
data and then perform a lookup in the kernel.  Once again to keep
code change to a minimum I've implemented the Solaris solution.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
lib/libzfs/libzfs_diff.c
lib/libzfs/libzfs_sendrecv.c
module/zfs/include/sys/zfs_ioctl.h
module/zfs/zfs_ioctl.c
module/zfs/zfs_onexit.c
scripts/common.sh [new file with mode: 0644]
scripts/common.sh.in
scripts/zconfig.sh