tests/discard: sync before close isn't necessary.

However we should be calling shutdown, since we're writing to the disk
and need to catch qemu errors.
This commit is contained in:
Richard W.M. Jones
2014-03-14 13:20:22 +00:00
parent d46ceea601
commit bae2134aef
2 changed files with 2 additions and 2 deletions

View File

@@ -106,7 +106,7 @@ die "$0: surprising result: full size <= original size\n"
# Remove the file and check the filesystem is trimmed automatically.
$g->rm ("/data");
$g->sync ();
$g->shutdown ();
$g->close ();
my $trimmed_size = (stat ($disk))[12];

View File

@@ -114,7 +114,7 @@ die "$0: surprising result: full size <= original size\n"
$g->rm ("/data");
$g->fstrim ("/");
$g->sync ();
$g->shutdown ();
$g->close ();
my $trimmed_size = (stat ($disk))[12];