]> granicus.if.org Git - zfs/commit
ZTS: Fix zfs_create_007_pos
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 3 Aug 2018 17:21:50 +0000 (10:21 -0700)
committerGitHub <noreply@github.com>
Fri, 3 Aug 2018 17:21:50 +0000 (10:21 -0700)
commit6da0998f592a322ca045dec1c9db61333c9936dc
tree8ee0318fcdce256d99b3e1155e68bfd3b7821d7e
parent62840030a7dceaee013ddbcc1eebcfc7922edf7c
ZTS: Fix zfs_create_007_pos

It's possible for an unrelated process, like blkid, to have the
volume open when 'zfs destroy' is run.  Switch the cleanup function
to the destroy_dataset() helper which handles this case by retrying
the destroy when the dataset is busy.

Reviewed-by: Giuseppe Di Natale <dinatale2@llnl.gov>
Reviewed-by: George Melikov <mail@gmelikov.ru>
Reviewed by: John Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #7763
tests/zfs-tests/tests/functional/cli_root/zfs_create/zfs_create_007_pos.ksh