[Pkg-libvirt-commits] [libguestfs] 41/59: tests: fstrim: Remount the disk.

Hilko Bengen bengen at moszumanska.debian.org
Thu Mar 20 23:05:39 UTC 2014


This is an automated email from the git hooks/post-receive script.

bengen pushed a commit to branch experimental
in repository libguestfs.

commit accf1b66aa835714690a2979e990c49243875dab
Author: Richard W.M. Jones <rjones at redhat.com>
Date:   Fri Mar 14 10:09:47 2014 +0000

    tests: fstrim: Remount the disk.
    
    This makes fstrim work.  It's not clear why exactly.
---
 tests/discard/test-fstrim.pl | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/tests/discard/test-fstrim.pl b/tests/discard/test-fstrim.pl
index 30bb855..cec853f 100755
--- a/tests/discard/test-fstrim.pl
+++ b/tests/discard/test-fstrim.pl
@@ -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 ();

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-libvirt/libguestfs.git



More information about the Pkg-libvirt-commits mailing list