Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
tests: fstrim: Remount the disk.
This makes fstrim work.  It's not clear why exactly.
  • Loading branch information
rwmjones committed Mar 14, 2014
1 parent 9b883d3 commit accf1b6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/discard/test-fstrim.pl
Expand Up @@ -113,6 +113,8 @@
# 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 ();
Expand Down

0 comments on commit accf1b6

Please sign in to comment.