[Bug 251828] "zfs create -o <mode>" ignores mode when creating the device node

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 25 Feb 2022 13:27:06 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251828

Janis <zedupsys@gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |zedupsys@gmail.com

--- Comment #5 from Janis <zedupsys@gmail.com> ---
I tested this bug, whose fix seems to have introduced bug #262189 as reported
by me.

In 13.0-RELEASE there was no way to reproduce this bug. In each shown case
received answer from gpart was:
gpart: arg0 'zvol/testpool/vol': Invalid argument

So i specially tested 12.2-RELEASE, but i could not repeat it exactly, but
partially. I believe that it is due to the reasoning as in bug #262189, since i
had virtual machine, VirtualBox, 1 vCPU assigned. Thus, in each case i got the
same answer, volmode=dev was not respected at all.

# zfs create -o volmode=dev -V 64m testpool/vol
# gpart create -s gpt /dev/zvol/testpool/vol
zvol/testpool/vol created

# zfs create -V 64m testpool/vol
# zfs set volmode=dev testpool/vol
# gpart create -s gpt /dev/zvol/testpool/vol
zvol/testpool/vol created

But if i did this flow:
# zfs create -V 64m testpool/vol
# zfs set volmode=dev testpool/vol
# .. reboot system ..
# gpart create -s gpt /dev/zvol/testpool/vol
gpart: arg0 'zvol/testpool/vol': Invalid argument

then returned value is as expected.

In 12.2-RELEASE i could not reproduce bug #262189

-- 
You are receiving this mail because:
You are the assignee for the bug.