[Pkg-libvirt-commits] [libguestfs] 36/266: virt-resize: Unmount filesystem after testing size.
Hilko Bengen
bengen at moszumanska.debian.org
Fri Oct 3 14:41:38 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to annotated tag debian/1%1.27.35-1
in repository libguestfs.
commit 81cafdcfd5932c0adddf22a06b3a770063526133
Author: Richard W.M. Jones <rjones at redhat.com>
Date: Fri Jul 25 16:04:18 2014 +0100
virt-resize: Unmount filesystem after testing size.
We were mounting different filesystems on top of each other. In fact
this is not a problem, but it's nicer to unmount each filesystem
properly after examining it.
---
resize/resize.ml | 1 +
1 file changed, 1 insertion(+)
diff --git a/resize/resize.ml b/resize/resize.ml
index 9614ec7..0521474 100644
--- a/resize/resize.ml
+++ b/resize/resize.ml
@@ -425,6 +425,7 @@ read the man page virt-resize(1).
else (
g#mount_ro dev "/";
let stat = g#statvfs "/" in
+ g#umount "/";
let size = stat.G.bsize *^ stat.G.blocks in
ContentFS (fs, size)
)
--
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