[gvfs/gnome-3-4] udisks2: set timeout to INTMAX when unmounting a filesystem



commit 0a47bf098e4d33c6284b9f2ef47c175c6503b932
Author: David Zeuthen <davidz redhat com>
Date:   Mon May 14 17:42:34 2012 -0400

    udisks2: set timeout to INTMAX when unmounting a filesystem
    
    It may indeed take more than 25 seconds if there's a lot of data to
    write. Related to https://bugzilla.redhat.com/show_bug.cgi?id=819492
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 monitor/udisks2/gvfsudisks2mount.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index ec1c0b6..504e0ec 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -901,6 +901,7 @@ unmount_do (UnmountData *data,
                              "{sv}",
                              "force", g_variant_new_boolean (TRUE));
     }
+  g_dbus_proxy_set_default_timeout (G_DBUS_PROXY (data->filesystem), G_MAXINT);
   udisks_filesystem_call_unmount (data->filesystem,
                                   g_variant_builder_end (&builder),
                                   data->cancellable,



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