mirror_zfs/scripts
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
..
zpios-profile Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpios-test Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpool-config Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zpool-layout Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
common.sh.in Add default stack checking 2011-06-13 13:50:21 -07:00
Makefile.am Remove spl/zfs modules as part of cleanup 2010-11-11 11:40:06 -08:00
Makefile.in Linux compat 2.6.39: mount_nodev() 2011-07-01 13:36:39 -07:00
zconfig.sh Pass -f option for import 2011-06-10 11:21:31 -07:00
zfault.sh Remove partition from vdev name in zfault.sh 2010-11-29 10:53:53 -08:00
zfs.sh Add default stack checking 2011-06-13 13:50:21 -07:00
zpios-sanity.sh Sanatize zpios-sanity.sh environment 2011-06-03 15:08:49 -07:00
zpios-survey.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios.sh Always unload zpios.ko on exit 2011-06-02 10:25:35 -07:00
zpool-create.sh Add build system 2010-08-31 13:41:27 -07:00