]> 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)
committerTony Hutter <hutter2@llnl.gov>
Wed, 2 Aug 2017 18:21:14 +0000 (11:21 -0700)
commit20c88dc3efd7e83aa872fad786f9e74ab5e350b9
tree81af4b343f02ca9e6de86f6804052b19631afd27
parent0c8fedeb355b00322f2785442929d29591cf00c8
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