mirror_zfs/scripts
Brian Behlendorf cf47fad67d Unconditionally load core kernel modules
Loading and unloading the zlib modules as part of the zfs.sh
script has proven a little problematic for a few reasons.

  * First, your kernel may not need to load either zlib_inflate
    or zlib_deflate.  This functionality may be built directly in
    to your kernel.  It depends entirely on what your distribution
    decided was the right thing to do.

  * Second, even if you do manage to load the correct modules you
    may not be able to unload them.  There may other consumers
    of the modules with a reference preventing the unload.

To avoid both of these issues the test scripts have been updated to
attempt to unconditionally load all modules listed in KERNEL_MODULES.
If the module is successfully loaded you must have needed it. If
the module can't be loaded that almost certainly means either it is
built in to your kernel or is already being used by another consumer.
In both cases this is not an issue and we can move on to the spl/zfs
modules.

Finally, by removing these kernel modules from the MODULES list
we ensure they are never unloaded during 'zfs.sh -u'.  This avoids
the issue of the script failing because there is another consumer
using the module we were not aware of.  In other words the script
restricts unloading modules to only the spl/zfs modules.

Closes #78
2010-11-11 11:38:25 -08:00
..
zpios-profile Add FAILFAST support 2010-10-12 14:55:02 -07:00
zpios-test Add lustre zpios-test workload 2010-11-08 14:03:36 -08:00
zpool-config Replace custom zpool configs with generic configs 2010-11-08 14:03:36 -08:00
zpool-layout Add FAILFAST support 2010-10-12 14:55:02 -07:00
common.sh.in Unconditionally load core kernel modules 2010-11-11 11:38:25 -08:00
Makefile.am Add zfault zpool configurations and tests 2010-10-12 15:20:03 -07:00
Makefile.in Add zfault zpool configurations and tests 2010-10-12 15:20:03 -07:00
zconfig.sh Add zconfig test for adding and removing vdevs 2010-10-22 12:41:57 -07:00
zfault.sh Add zfault zpool configurations and tests 2010-10-12 15:20:03 -07:00
zfs.sh Wait up to timeout seconds for udev device 2010-09-11 20:54:41 -07:00
zpios-sanity.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios-survey.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpool-create.sh Add build system 2010-08-31 13:41:27 -07:00