diff options
author | LOLi <[email protected]> | 2017-06-02 16:17:00 +0200 |
---|---|---|
committer | Brian Behlendorf <[email protected]> | 2017-06-02 07:17:00 -0700 |
commit | 92aceb2a7ee8c9367fdc901fed933f6f258173e0 (patch) | |
tree | b05170d226a597196ab3389d9c798d01908b76dc /cmd/zpool/zpool_main.c | |
parent | b870c4b5d716d87ddfb29f28745e639dd635fd5f (diff) |
Fix "snapdev" property issues
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').
Additionally, fix a NULL pointer dereference accidentally introduced in
5559ba0 that can be triggered when setting the "snapdev" property to
the value "hidden" twice.
Finally, add a new test case "zvol_misc_snapdev" to the ZFS Test Suite.
Reviewed by: Boris Protopopov <[email protected]>
Reviewed-by: Brian Behlendorf <[email protected]>
Signed-off-by: loli10K <[email protected]>
Closes #6131
Closes #6175
Closes #6176
Diffstat (limited to 'cmd/zpool/zpool_main.c')
0 files changed, 0 insertions, 0 deletions