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

From: <bugzilla-noreply_at_freebsd.org>
Date: Fri, 13 Aug 2021 14:35:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251828

Mark Johnston <markj@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |markj@FreeBSD.org

--- Comment #1 from Mark Johnston <markj@FreeBSD.org> ---
Has this been fixed?  I can't seem to reproduce it:

markj@nuc> sudo zfs create -o volblocksize=8192 -o volmode=dev -V 1G test/mark
markj@nuc> sudo gpart create -s gpt /dev/zvol/test/mark
gpart: arg0 'zvol/test/mark': Invalid argument

There are intermittent CI failures that seem linked to the workaround for this
PR in the AIO tests:
https://ci.freebsd.org/job/FreeBSD-main-amd64-test/18936/
https://cgit.freebsd.org/src/tree/tests/sys/aio/aio_test.c#n918

Is there some race where the "zfs set" can cause the zvol device to go away
briefly?  FWIW I don't see any devd events to that effect if I create a dataset
with volmode=dev and then zfs set volmode=dev again, which is what the test
does.

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