HomeFreeBSD

Fix filesystem destroy with receive_resume_token

Description

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

Details

Provenance
Roman Strashkin <roman.strashkin@nexenta.com>Authored on Jul 12 2016, 5:53 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Jul 15 2016, 10:34 PM
Parents
rG35a76a036637: Implementation of SSE optimized Fletcher-4
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rG1b87e0f53249: Fix filesystem destroy with receive_resume_token (authored by Roman Strashkin <roman.strashkin@nexenta.com>).Jul 15 2016, 10:34 PM