generic/520: Remove sync in clean_dir
authorYang Xu <xuyang2018.jy@cn.fujitsu.com>
Mon, 23 Dec 2019 10:21:39 +0000 (18:21 +0800)
committerEryu Guan <guaneryu@gmail.com>
Sun, 2 Feb 2020 12:46:58 +0000 (20:46 +0800)
commitb536de2a042484bb241cca120ce55c974309513a
tree8dc9eb57b2f81d0c62d288637549d653a61b3083
parentfb72f6f547d7f2ecb97f33858193e58119bb5a4d
generic/520: Remove sync in clean_dir

When I test this case on xfs, it may fail as below:
--------------------------------------------
 === link SCRATCH_MNT/A/foo SCRATCH_MNT/bar  with fsync SCRATCH_MNT/A ===
+umount: /mnt/xfstests/scratch: target is busy.
+        (In some cases useful info about processes that use
+         the device is found by lsof(8) or fuser(1))
---------------------------------------------

It fails because somethings is still using the fs when we call sync and then
try to unmount it. We can simply remove sync as the unmount is supposed to
persist the file/directory removals.

Signed-off-by: Yang Xu <xuyang2018.jy@cn.fujitsu.com>
Reviewed-by: Darrick J. Wong <darrick.wong@oracle.com>
Signed-off-by: Eryu Guan <guaneryu@gmail.com>
tests/generic/520