summaryrefslogtreecommitdiffstats
path: root/inspector
diff options
context:
space:
mode:
authorRichard Jones <rjones@redhat.com>2009-04-30 17:23:57 +0100
committerRichard Jones <rjones@redhat.com>2009-04-30 17:25:14 +0100
commite4733575efff31742444b180cdcfbc2504b144c8 (patch)
tree353bcf493a356fd36470ef5673038f3207f096b1 /inspector
parent41b959fd9b057354f642d84398b875d02b88b864 (diff)
downloadlibguestfs-e4733575efff31742444b180cdcfbc2504b144c8.tar.gz
libguestfs-e4733575efff31742444b180cdcfbc2504b144c8.tar.xz
libguestfs-e4733575efff31742444b180cdcfbc2504b144c8.zip
Fix umount_all command so it unmounts filesystems in the correct order.
Diffstat (limited to 'inspector')
-rwxr-xr-xinspector/virt-inspector.pl6
1 files changed, 0 insertions, 6 deletions
diff --git a/inspector/virt-inspector.pl b/inspector/virt-inspector.pl
index 21694310..b2983b3d 100755
--- a/inspector/virt-inspector.pl
+++ b/inspector/virt-inspector.pl
@@ -566,12 +566,6 @@ if ($output !~ /.*fish$/) {
check_for_applications ($root_dev);
check_for_kernels ($root_dev);
- # umount_all in libguestfs is buggy - it doesn't unmount
- # filesystems in the correct order. So let's unmount them
- # in reverse first before calling umount_all as a last resort.
- foreach (sort { $b cmp $a } keys %$mounts) {
- eval "\$g->umount ('$_')";
- }
$g->umount_all ();
}
}