← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1763067] Re: zvol_id throws ioctl_get_msg failed:Inappropriate ioctl for device

 

** Changed in: zfs-linux (Ubuntu)
       Status: In Progress => Invalid

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1763067

Title:
  zvol_id throws ioctl_get_msg failed:Inappropriate ioctl for device

Status in zfs-linux package in Ubuntu:
  Invalid
Status in zfs-linux source package in Xenial:
  Fix Released
Status in zfs-linux source package in Artful:
  Fix Released

Bug description:
  == SRU Justification [XENIAL][ARTFUL] ==

  Symlinks in /dev/zvol are not because /lib/udev/zvol_id exits with
  ioctl_get_msg failed:Inappropriate ioctl for device.  The core reason
  is that the BLKZNAME with non-HWE userspace zfsutils is 1 char
  different is size than the HWE kernel drivers.

  == 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:Inappropriate ioctl for device.

  Description:	Ubuntu 16.04.4 LTS
  Release:	16.04

  Running  linux-generic-hwe-16.04-edge
  4.15.0-13-generic

  zfsutils-linux 0.6.5.6-0ubuntu19

  The version of zvol_id in zfsutils-linux_0.7.5-1ubuntu14_amd64 works
  without error.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/zfs-linux/+bug/1763067/+subscriptions