zvol_id throws ioctl_get_msg failed:Inappropriate ioctl for device
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
zfs-linux (Ubuntu) |
Invalid
|
Medium
|
Unassigned | ||
Xenial |
Fix Released
|
Undecided
|
Colin Ian King | ||
Artful |
Fix Released
|
Undecided
|
Colin Ian King |
Bug Description
== SRU Justification [XENIAL][ARTFUL] ==
Symlinks in /dev/zvol are not because /lib/udev/zvol_id exits with ioctl_get_msg failed:
== Fix ==
Change the userland zvol_id tool to use the V0.6.x ZFS_MAXNAMELEN size and if that fails with ENOTTY retry with the V0.07.0 ZFS_MAXNAMELEN size as a fallback compatibility call.
== Regression Potential ==
Very small, this changes zvol_id and keeps the original functionality as well as adding V7 ZFS functionality as a fallback. At worse, zvol_id will not work, but that's the same as the current broken state.
== Testing ==
create a volume, e.g. zfs create -V 8M ${POOL}/testvol
run /lib/udev/zvol_id on /dev/zd0 on Xenial with a 4.15 Xenial HWE kernel. Without the fix one gets an ENOTTY errno failure. With the fix zvol_id returns the zvol id and symlinks in /dev/zvol work.
---
Symlinks in /dev/zvol are not created because /lib/udev/zvol_id crashes with ioctl_get_msg failed:
Description: Ubuntu 16.04.4 LTS
Release: 16.04
Running linux-generic-
4.15.0-13-generic
zfsutils-linux 0.6.5.6-0ubuntu19
The version of zvol_id in zfsutils-
Changed in zfs-linux (Ubuntu): | |
importance: | Undecided → Medium |
assignee: | nobody → Colin Ian King (colin-king) |
Changed in zfs-linux (Ubuntu): | |
status: | New → In Progress |
description: | updated |
description: | updated |
Changed in zfs-linux (Ubuntu): | |
status: | In Progress → Invalid |
The reason for this failure is that the BLKZNAME ioctl is different, zfs 0.6.x has a 255 char name where as 0.7.0 has a 256 char name.
There are test packages ready for testing in a PPA, do you mind trying these out using:
sudo add-apt-repository ppa:colin- king/zfs- lp1763067
sudo apt-get update
sudo apt-get dist-upgrade
And let me know if this fixes the issue.