]> git.proxmox.com Git - mirror_zfs.git/commit
Fix filesystem destroy with receive_resume_token
authorRoman Strashkin <roman.strashkin@nexenta.com>
Tue, 12 Jul 2016 17:53:53 +0000 (20:53 +0300)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 15 Jul 2016 22:34:46 +0000 (15:34 -0700)
commit1b87e0f53249a17f2fbb1d5ca725e65add391ace
tree22a45ad7198504860e5d216766e84f739e5b2b45
parent35a76a0366372d89a0f1ac3cebd5bc7646aadec3
Fix filesystem destroy with receive_resume_token

It is possible that the given DS may have hidden child (%recv)
datasets - "leftovers" resulting from the previously interrupted
'zfs receieve'.  Try to remove the hidden child (%recv) and after
that try to remove the target dataset.   If the hidden child
(%recv) does not exist the original error (EEXIST) will be returned.

Signed-off-by: Roman Strashkin <roman.strashkin@nexenta.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #4818
module/zfs/zfs_ioctl.c