HomeFreeBSD

Retry zfs destroy when busy in rsend tests

Description

Retry zfs destroy when busy in rsend tests

rsend tests in the test suite frequently create and
destroy datasets. It is possible for zfs destroy to
return an error code indicating the dataset is busy.
Simply use a log_must_busy in these cases to retry
destroying those datasets. Other fixes to rsend test
cases to avoid unmounting and remounting filesystems
and some cleanup.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Signed-off-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Closes #6418

Details

Provenance
Giuseppe Di Natale <dinatale2@users.noreply.github.com>Authored on Aug 3 2017, 3:57 PM
Brian Behlendorf <behlendorf1@llnl.gov>Committed on Aug 3 2017, 3:57 PM
Parents
rGecb2b7dc7f8f: Use SET_ERROR for constant non-zero return codes
Branches
Unknown
Tags
Unknown

Event Timeline

Brian Behlendorf <behlendorf1@llnl.gov> committed rGe3bdcb8ad88e: Retry zfs destroy when busy in rsend tests (authored by Giuseppe Di Natale <dinatale2@users.noreply.github.com>).Aug 3 2017, 3:57 PM