mirror_zfs/lib/libspl/include/sys
Brian Behlendorf 2cf7f52bc4 Linux compat 2.6.39: mount_nodev()
The .get_sb callback has been replaced by a .mount callback
in the file_system_type structure.  When using the new
interface the caller must now use the mount_nodev() helper.

Unfortunately, the new interface no longer passes the vfsmount
down to the zfs layers.  This poses a problem for the existing
implementation because we currently save this pointer in the
super block for latter use.  It provides our only entry point
in to the namespace layer for manipulating certain mount options.

This needed to be done originally to allow commands like
'zfs set atime=off tank' to work properly.  It also allowed me
to keep more of the original Solaris code unmodified.  Under
Solaris there is a 1-to-1 mapping between a mount point and a
file system so this is a fairly natural thing to do.  However,
under Linux they many be multiple entries in the namespace
which reference the same filesystem.  Thus keeping a back
reference from the filesystem to the namespace is complicated.

Rather than introduce some ugly hack to get the vfsmount and
continue as before.  I'm leveraging this API change to update
the ZFS code to do things in a more natural way for Linux.
This has the upside that is resolves the compatibility issue
for the long term and fixes several other minor bugs which
have been reported.

This commit updates the code to remove this vfsmount back
reference entirely.  All modifications to filesystem mount
options are now passed in to the kernel via a '-o remount'.
This is the expected Linux mechanism and allows the namespace
to properly handle any options which apply to it before passing
them on to the file system itself.

Aside from fixing the compatibility issue, removing the
vfsmount has had the benefit of simplifying the code.  This
change which fairly involved has turned out nicely.

Closes #246
Closes #217
Closes #187
Closes #248
Closes #231
2011-07-01 13:36:39 -07:00
..
dktp Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
sysevent Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
acl_impl.h Add linux libspl support 2010-08-31 13:41:59 -07:00
acl.h Add linux libspl support 2010-08-31 13:41:59 -07:00
bitmap.h Add linux libspl support 2010-08-31 13:41:59 -07:00
byteorder.h Add linux libspl support 2010-08-31 13:41:59 -07:00
callb.h Add linux libspl support 2010-08-31 13:41:59 -07:00
cmn_err.h Add linux libspl support 2010-08-31 13:41:59 -07:00
compress.h Add linux libspl support 2010-08-31 13:41:59 -07:00
cred.h Add linux libspl support 2010-08-31 13:41:59 -07:00
debug.h Add linux libspl support 2010-08-31 13:41:59 -07:00
dkio.h Fix for access beyond end of device error 2010-11-10 21:29:07 -08:00
dklabel.h Fix for access beyond end of device error 2010-11-10 21:29:07 -08:00
feature_tests.h Add linux libspl support 2010-08-31 13:41:59 -07:00
file.h Add linux libspl support 2010-08-31 13:41:59 -07:00
frame.h Add linux libspl support 2010-08-31 13:41:59 -07:00
int_limits.h Add linux libspl support 2010-08-31 13:41:59 -07:00
int_types.h Add linux libspl support 2010-08-31 13:41:59 -07:00
inttypes.h Add linux libspl support 2010-08-31 13:41:59 -07:00
isa_defs.h Add linux libspl support 2010-08-31 13:41:59 -07:00
kmem.h Add linux libspl support 2010-08-31 13:41:59 -07:00
kstat.h Add linux libspl support 2010-08-31 13:41:59 -07:00
list_impl.h Add linux libspl support 2010-08-31 13:41:59 -07:00
list.h Add linux libspl support 2010-08-31 13:41:59 -07:00
machelf.h Add linux libspl support 2010-08-31 13:41:59 -07:00
Makefile.am Fix block device-related issues in zdb. 2010-12-14 09:52:46 -08:00
Makefile.in Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
mhd.h Add linux libspl support 2010-08-31 13:41:59 -07:00
mkdev.h Add linux libspl support 2010-08-31 13:41:59 -07:00
mntent.h Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
mnttab.h Add 'zfs mount' support 2011-02-04 16:11:58 -08:00
mount.h Linux compat, umount2(2) flags 2011-03-22 12:15:54 -07:00
note.h Add linux libspl support 2010-08-31 13:41:59 -07:00
param.h Correct MAXUID 2011-04-29 14:03:12 -07:00
priv.h Add linux libspl support 2010-08-31 13:41:59 -07:00
processor.h Add linux libspl support 2010-08-31 13:41:59 -07:00
sdt.h Add linux libspl support 2010-08-31 13:41:59 -07:00
stack.h Add linux libspl support 2010-08-31 13:41:59 -07:00
stat.h Fix block device-related issues in zdb. 2010-12-14 09:52:46 -08:00
stropts.h Add linux libspl support 2010-08-31 13:41:59 -07:00
sunddi.h Add linux libspl support 2010-08-31 13:41:59 -07:00
sysevent.h Add linux libspl support 2010-08-31 13:41:59 -07:00
sysmacros.h Add linux libspl support 2010-08-31 13:41:59 -07:00
systeminfo.h Add linux libspl support 2010-08-31 13:41:59 -07:00
systm.h Add linux libspl support 2010-08-31 13:41:59 -07:00
time.h Add linux libspl support 2010-08-31 13:41:59 -07:00
types32.h Add linux libspl support 2010-08-31 13:41:59 -07:00
types.h Add linux libspl support 2010-08-31 13:41:59 -07:00
tzfile.h Add linux libspl support 2010-08-31 13:41:59 -07:00
uio.h Add linux libspl support 2010-08-31 13:41:59 -07:00
utsname.h Add linux libspl support 2010-08-31 13:41:59 -07:00
va_list.h Add linux libspl support 2010-08-31 13:41:59 -07:00
varargs.h Add linux libspl support 2010-08-31 13:41:59 -07:00
vnode.h Add linux libspl support 2010-08-31 13:41:59 -07:00
vtoc.h Fix for access beyond end of device error 2010-11-10 21:29:07 -08:00
zone.h Add linux libspl support 2010-08-31 13:41:59 -07:00