zfs-0.6.0-rc9 zconfig.sh persistent zpool.cache ioctl: LOOP_SET_FD: Function not implemented #797

Closed
dpchrist opened this Issue Jun 25, 2012 · 1 comment

Comments

Projects
None yet
2 participants

ZFS:

I am attempting to use zfs-0.6.0-rc9 on debian-6.0.5-amd64 (Squeeze) with a 3.2.0 kernel from Debian backports. When I run the zconfig.sh regression test, it fails. (see console session below).

Please let me know if you need more information.

David

2012-06-24 22:00:07 root@i72600s ~/build/zfs-0.6.0-rc9

/usr/libexec/zfs/zconfig.sh -cv

Destroying
1 persistent zpool.cache ioctl: LOOP_SET_FD: Function not implemented
zpool-create.sh: Error 1 creating /tmp/zpool-vdev0 -> /dev/loop-control loopback
Fail (2)

2012-06-24 22:02:46 root@i72600s ~/build/zfs-0.6.0-rc9

/usr/libexec/zfs/zconfig.sh -cv -s 1

Destroying
1 persistent zpool.cache Skip
2 scan disks for pools to import ioctl: LOOP_SET_FD: Function not implemented
zpool-create.sh: Error 1 creating /tmp/zpool-vdev0 -> /dev/loop-control loopback
Fail (2)

2012-06-24 22:02:50 root@i72600s ~/build/zfs-0.6.0-rc9

cat /etc/debian_version

6.0.5

2012-06-24 22:02:54 root@i72600s ~/build/zfs-0.6.0-rc9

uname -a

Linux i72600s 3.2.0-0.bpo.2-amd64 #1 SMP Sun Jun 3 21:40:57 UTC 2012 x86_64 GNU/Linux

Owner

behlendorf commented Jun 29, 2012

This looks like a duplicate of #748 and isn't really a zfs bug. It just appears that the block device your trying to use to back zfs for the purposes of the test don't support loop back devices. Still let's like this open until we can update our test framework.

ColdCanuck added a commit to ColdCanuck/zfs that referenced this issue Oct 13, 2012

Simple patch to not return /dev/loop-control in unused_loop_device
Fixes Issue #797

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 (see
http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commitdiff;h=770fe30a46a12b6fb6b63fbe1737654d28e84844)
but rather 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

unya added a commit to unya/zfs that referenced this issue Dec 13, 2013

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 (torvalds/linux@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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment