Fix ZVOL rename minor devices
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 7 Jan 2011 20:24:03 +0000 (12:24 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 7 Jan 2011 20:26:02 +0000 (12:26 -0800)
commit95c73795b001267d6b683b71e8abe51de4b0c938
treeca90416e11c6baa7a1d26565450feb3848c570d1
parent149e873ab174ded1f632f2b2eb2267593517c7ca
Fix ZVOL rename minor devices

During a rename we need to be careful to destroy and create a
new minor for the ZVOL _only_ if the rename succeeded.  The previous
code would both destroy you minor device unconditionally, it would
also fail to create the new minor device on success.
module/zfs/zfs_ioctl.c