HomeFreeBSD

Recreate minors when renaming zvols

Description

Recreate minors when renaming zvols

When a zvol with snapshots is renamed the device files under
/dev/zvol/ are not renamed. This patch resolves the problem
by destroying and recreating the minors with the new name so
the links can be recreated bu udev.

Original-patch-by: Suman Chakravartula <schakrava@gmail.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #408

Details

Provenance
Brian Behlendorf <behlendorf1@llnl.gov>Authored on Nov 19 2012, 9:48 PM
Parents
rG33364b15d302: mount.zfs: canonicalize mount point for mtab
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG0e20a31b4bb7: Recreate minors when renaming zvols (authored by Brian Behlendorf <behlendorf1@llnl.gov>).Nov 20 2012, 12:59 AM