[Pkg-libvirt-commits] [libguestfs] 95/156: virt-resize: Unmount filesystem after testing size.
Hilko Bengen
bengen at moszumanska.debian.org
Sat Aug 30 08:26:02 UTC 2014
This is an automated email from the git hooks/post-receive script.
bengen pushed a commit to branch master
in repository libguestfs.
commit 63220fb9d699afc3e3f25d2f9ed1ad3ba98b3094
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.
(cherry picked from commit 81cafdcfd5932c0adddf22a06b3a770063526133)
---
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