summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-05-08 14:00:32 -0400
committerDavid Zeuthen <davidz@redhat.com>2012-05-14 17:49:33 -0400
commit052010c7ca25217fd9f3a4a9d479d98ef5f57ae5 (patch)
tree335fc2ce49b5452c79c680ffbafbd2e5f5dffb0a
parent01161473ed33ee682f340e6f12edcba5334475e0 (diff)
downloadgvfs-052010c7ca25217fd9f3a4a9d479d98ef5f57ae5.tar.gz
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>
-rw-r--r--monitor/udisks2/gvfsudisks2mount.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/monitor/udisks2/gvfsudisks2mount.c b/monitor/udisks2/gvfsudisks2mount.c
index 61f58a1f..ec1c0b6c 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;