mirror_zfs/scripts
Brian Behlendorf cc9ee13e1a Dynamically create loop devices
Several of the in-tree regression tests depend on the availability
of loop devices.  If for some reason no loop devices are available
the tests will fail.

Normally this isn't an issue because most Linux distributions create
8 loop devices by default.  This is enough for our purposes.  However,
recent Fedora releases have only been creating a single loop device
and this leads to failures.  Alternately, if something else of the
system is using the loop devices we may see failures.

The fix for this is to update the support scripts to dynamically
create loop devices as needed.  The scripts need only create a node
under /dev/ and the loop driver with create the minor.  This behavior
has been supported by the loop driver for ages.

Additionally this patch updates cleanup_loop_devices() to cleanup
loop devices which have already had their file store deleted.  This
helps prevent stale loop devices from accumulating on the system due
to test failures.

Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Prakash Surya <surya1@llnl.gov>
Closes #2249
2014-04-09 13:29:32 -07:00
..
zfs-images@3331601f6d Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
zpios-profile Replace libexecdir with datadir 2013-03-06 15:46:40 -08:00
zpios-test Replace libexecdir with datadir 2013-03-06 15:46:40 -08:00
zpool-config Add default FILEDIR path to zpool-config scripts 2014-02-12 09:37:46 -08:00
.gitignore Remove autotools products 2012-08-27 11:47:44 -07:00
common.sh.in Dynamically create loop devices 2014-04-09 13:29:32 -07:00
cstyle.pl cstyle: Allow spaces in all comments 2013-12-18 16:46:35 -08:00
dkms.mkconf Use requested kernel for dkms builds 2013-03-21 12:51:06 -07:00
dkms.postinst Refresh RPM packaging 2013-03-18 15:33:17 -07:00
kmodtool Add kmod repo integration 2013-08-01 09:48:07 -07:00
Makefile.am Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
smb.sh Implemented sharing datasets via SMB using libshare 2012-12-03 09:42:15 -08:00
zconfig.sh Fix zconfig.sh test 9 2014-02-10 15:48:32 -08:00
zfault.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zfs2zol-patch.sed Add script to fix file names in upstream patches 2013-10-29 10:30:43 -07:00
zfs.sh Initial implementation of zed (ZFS Event Daemon) 2014-04-02 13:10:03 -07:00
zimport.sh Add zimport.sh compatibility test script 2014-02-21 12:10:31 -08:00
zpios-sanity.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zpios-survey.sh Add linux zpios support 2010-08-31 13:42:01 -07:00
zpios.sh build: resolve orthographic and other grammatical errors 2013-04-02 10:44:52 -07:00
zpool-create.sh Add build system 2010-08-31 13:41:27 -07:00