[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Libguestfs] [PATCH 7/8 v2] virt-make-fs: Specify format of disk



-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://et.redhat.com/~rjones/virt-df/
>From bdc171e46d8b0b6fc0be2c58093a26c4b4dd6a18 Mon Sep 17 00:00:00 2001
From: Richard W.M. Jones <rjones redhat com>
Date: Thu, 21 Oct 2010 23:33:15 +0100
Subject: [PATCH 7/8] virt-make-fs: Specify format of disk (RHBZ#642934,CVE-2010-3851).

---
 tools/virt-make-fs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/virt-make-fs b/tools/virt-make-fs
index 1a6aee4..4e928af 100755
--- a/tools/virt-make-fs
+++ b/tools/virt-make-fs
@@ -405,7 +405,7 @@ eval {
 
     # Run libguestfs.
     my $g = Sys::Guestfs->new ();
-    $g->add_drive ($output);
+    $g->add_drive_opts ($output, format => $format);
     $g->launch ();
 
     if ($type eq "ntfs" && !feature_available ($g, "ntfs3g", "ntfsprogs")) {
-- 
1.7.3.1


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]