[gvfs/gnome-3-4] udisks2: also check for umount(8) saying "target is busy"



commit 052010c7ca25217fd9f3a4a9d479d98ef5f57ae5
Author: David Zeuthen <davidz redhat com>
Date:   Tue May 8 14:00:32 2012 -0400

    udisks2: also check for umount(8) saying "target is busy"
    
    Same as http://cgit.freedesktop.org/udisks/commit/?id=d8fa361eec2706091e9d7f166f63bb5c0f663f4b
    
    Signed-off-by: David Zeuthen <davidz redhat com>

 monitor/udisks2/gvfsudisks2mount.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index 61f58a1..ec1c0b6 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -846,7 +846,9 @@ umount_command_cb (GObject       *source_object,
       goto out;
     }
 
-  if (standard_error != NULL && strstr (standard_error, "device is busy") != NULL)
+  if (standard_error != NULL &&
+      (strstr (standard_error, "device is busy") != NULL ||
+       strstr (standard_error, "target is busy") != NULL))
     {
       unmount_show_busy (data, data->mount->mount_path);
       goto out;



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