Fix generation of kernel uevents for snapshot rename on linux
commit0b4dcbe5b425be70bc10d836d8e66711c690e8d4
authorJKDingwall <james@dingwall.me.uk>
Sun, 6 Oct 2024 21:36:33 +0000 (6 22:36 +0100)
committerGitHub <noreply@github.com>
Sun, 6 Oct 2024 21:36:33 +0000 (6 14:36 -0700)
tree03179a000be1e6ed552ab05cc9e97c263de9cca1
parent995a3a61fdcf6b6b4479f073c19271854c48de6f
Fix generation of kernel uevents for snapshot rename on linux

`zvol_rename_minors()` needs to be given the full path not just the
snapshot name.  Use code removed in a0bd735ad as a guide
to providing the necessary values.

Add ZTS check for /dev changes after snapshot rename.  After
renaming a snapshot with 'snapdev=visible' ensure that the /dev
entries are updated to reflect the rename.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: James Dingwall <james@dingwall.me.uk>
Closes #14223
Closes #16600
module/zfs/dsl_dataset.c
tests/zfs-tests/tests/functional/zvol/zvol_misc/zvol_misc_snapdev.ksh