HomeFreeBSD

Fix generation of kernel uevents for snapshot rename on linux

Description

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

Details

Provenance
JKDingwall <james@dingwall.me.uk>Authored on Oct 6 2024, 9:36 PM
Tony Hutter <hutter2@llnl.gov>Committed on Nov 5 2024, 11:43 PM
Parents
rGd29f257b030a: Update path for zed in zfs-zed.service for native debian packages
Branches
Unknown
Tags
Unknown

Event Timeline

Tony Hutter <hutter2@llnl.gov> committed rGf53f3c3e6ad4: Fix generation of kernel uevents for snapshot rename on linux (authored by JKDingwall <james@dingwall.me.uk>).Nov 5 2024, 11:43 PM