[gvfs] udisks2: also check for umount(8) saying "target is busy"



commit 4f89d930d3eb8414dc301262d7db448d257843bc
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 5037d73..6decc19 100644
--- a/monitor/udisks2/gvfsudisks2mount.c
+++ b/monitor/udisks2/gvfsudisks2mount.c
@@ -845,7 +845,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]