tests: fstrim: Remount the disk.

This makes fstrim work.  It's not clear why exactly.
This commit is contained in:
Richard W.M. Jones
2014-03-14 10:09:47 +00:00
parent 9b883d3c3e
commit accf1b66aa

View File

@@ -113,6 +113,8 @@ die "$0: surprising result: full size <= original size\n"
# Remove the file and then try to trim the filesystem.
$g->rm ("/data");
$g->umount ("/");
$g->mount_options ("nodiscard", "/dev/sda", "/");
$g->fstrim ("/");
$g->sync ();
$g->close ();