[Bug 251828] "zfs create -o <mode>" ignores mode when creating the device node
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Dec 13 23:29:17 UTC 2020
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=251828
Bug ID: 251828
Summary: "zfs create -o <mode>" ignores mode when creating the
device node
Product: Base System
Version: CURRENT
Hardware: Any
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: bugs at FreeBSD.org
Reporter: asomers at FreeBSD.org
zvols have a "volmode" property that controls how their device nodes are
created: as geom devices (default), as non-geom character devices, or not at
all. At least, it's supposed to do that. But on 13-CURRENT, the volmode
property gets ignored at creation time. The device always gets created as the
default type instead.
The easiest way to demonstrate the problem is to use gpart on the device node.
It isn't supposed to work if the node is a non-geom device. But it does!
# zfs create -o volmode=dev -V 64m testpool/vol
# gpart create -s gpt /dev/zvol/testpool/vol
zvol/testpool/vol created
However, if we change the volmode property after creation, then ZFS destroys
and recreates the device node with the correct volmode.
# zfs create -V 64m testpool/vol
# zfs set volmode=dev testpool/vol
# gpart create -s gpt /dev/zvol/testpool/vol
gpart: arg0 'zvol/testpool/vol': Invalid argument
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list