mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
tests: fstrim: Remount the disk.
This makes fstrim work. It's not clear why exactly.
This commit is contained in:
@@ -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 ();
|
||||
|
||||
Reference in New Issue
Block a user