]> git.proxmox.com Git - mirror_zfs.git/commit
Fix "snapdev" property inheritance behaviour
authorLOLi <loli10K@users.noreply.github.com>
Thu, 25 May 2017 23:43:46 +0000 (01:43 +0200)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Thu, 25 May 2017 23:43:46 +0000 (16:43 -0700)
commit959f56b99366c8727647b5b19fb3d47555c96cf3
tree03a5880caf1504f19442098204d2d6a341346e17
parent7bc181e6db7e844981b75ae628a97e8f27628025
Fix "snapdev" property inheritance behaviour

When inheriting the "snapdev" property to we don't always call
zfs_prop_set_special(): this prevents device nodes from being created in
certain situations. Because "snapdev" is the only *special* property
that is also inheritable we need to call zfs_prop_set_special() even
when we're not reverting it to the received value ('zfs inherit -S').

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: loli10K <ezomori.nozomu@gmail.com>
Closes #6131
module/zfs/zfs_ioctl.c
module/zfs/zvol.c
tests/runfiles/linux.run
tests/zfs-tests/tests/functional/zvol/zvol_misc/Makefile.am
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_snapdev.ksh [new file with mode: 0755]