[gvfs] udisks2: set timeout to INTMAX when unmounting a filesystem



commit 817d82da698910b45f2809175653d671190b939f
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 6decc19..e882ba8 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -900,6 +900,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]