Recreate minors when renaming zvols
authorBrian Behlendorf <behlendorf1@llnl.gov>
Mon, 19 Nov 2012 21:48:06 +0000 (13:48 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Tue, 20 Nov 2012 00:59:44 +0000 (16:59 -0800)
commit0e20a31b4bb7f9745fe6d5cafe513c9c1df3e933
tree6594f76c329dafe6e9f22a6fd6ebd4581857826a
parent33364b15d302abfb2945129994b9cf42e61dc302
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
lib/libzfs/libzfs_changelist.c