]> granicus.if.org Git - zfs/commit
Fix volmode=none property behavior at import time
authorLOLi <loli10K@users.noreply.github.com>
Mon, 31 Jul 2017 18:07:05 +0000 (20:07 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 31 Jul 2017 18:07:05 +0000 (11:07 -0700)
commitc7a7601c08d3f7db42dfca46e0ad8aa287df43da
tree90c1469b35fc69dab920a2caa7a578af7bd5e346
parent1e0565d10a5f75bd15104df3db3264554e8b2dd1
Fix volmode=none property behavior at import time

At import time spa_import() calls zvol_create_minors() directly: with
the current implementation we have no way to avoid device node
creation when volmode=none.

Fix this by enforcing volmode=none directly in zvol_alloc().

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6426
module/zfs/zvol.c
tests/zfs-tests/include/libtest.shlib
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_volmode.ksh