mirror_zfs/scripts
Andrew Reid 6cb7ab069d Do not return /dev/loop-control in unused_loop_device
The function unused_loop_device in /usr/libexec/zfs/common.sh
returns /dev/loop-control on the first call. This device is NOT
a loop device (https://github.com/torvalds/linux/commit/770fe30)
it is a control device. This in turn causes the script zconfig.sh
to fail with:

  zpool-create.sh: Error 1 creating /tmp/zpool-vdev0 ->
  /dev/loop-control loopback

The patch makes the function return /dev/loop[0-9]* which are
loop devices.

Signed-off-by: Andrew Reid <ColdCanuck@nailedtotheperch.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #797
2012-10-15 10:02:42 -07:00
..
zpios-profile Remove autotools products 2012-08-27 11:47:44 -07:00
zpios-test Remove autotools products 2012-08-27 11:47:44 -07:00
zpool-config Remove autotools products 2012-08-27 11:47:44 -07:00
zpool-layout Remove autotools products 2012-08-27 11:47:44 -07:00
.gitignore Remove autotools products 2012-08-27 11:47:44 -07:00
common.sh.in Do not return /dev/loop-control in unused_loop_device 2012-10-15 10:02:42 -07:00
Makefile.am Remove spl/zfs modules as part of cleanup 2010-11-11 11:40:06 -08:00
zconfig.sh Fix zconfig.sh non-optimal alignment 2012-02-09 13:23:28 -08:00
zfault.sh Disable 90-zfs.rules for test suite 2011-10-11 14:45:37 -07:00
zfs.sh Add default stack checking 2011-06-13 13:50:21 -07: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 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