[gnome-disk-utility] gnome-disk-image-mounter: set no-part-scan option to TRUE



commit da5046eace0a41aa359d74f7fea1687b1aeb9a9e
Author: David Zeuthen <davidz redhat com>
Date:   Tue May 1 19:43:58 2012 -0400

    gnome-disk-image-mounter: set no-part-scan option to TRUE
    
    Some ISO files (such as Fedora ISO images) and Floopy images appear as
    partitioned media (for various reasons, mostly to make them more
    compatible with other OSes) and thus won't work with our current setup
    since we only support images with a single mountable filesystem.
    
    Work around this by insisting that the disk image should not be
    scanned for partitions.
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 src/gnome-disk-image-mounter/main.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/gnome-disk-image-mounter/main.c b/src/gnome-disk-image-mounter/main.c
index 94d8251..284daa0 100644
--- a/src/gnome-disk-image-mounter/main.c
+++ b/src/gnome-disk-image-mounter/main.c
@@ -191,6 +191,7 @@ handle_attach (gint *argc, gchar **argv[])
         }
 
       g_variant_builder_init (&options_builder, G_VARIANT_TYPE_VARDICT);
+        g_variant_builder_add (&options_builder, "{sv}", "no-part-scan", g_variant_new_boolean (TRUE));
       if (!opt_attach_writable)
         g_variant_builder_add (&options_builder, "{sv}", "read-only", g_variant_new_boolean (TRUE));
 



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