diff options
author | David Zeuthen <davidz@redhat.com> | 2012-05-08 14:00:32 -0400 |
---|---|---|
committer | David Zeuthen <davidz@redhat.com> | 2012-05-08 14:00:32 -0400 |
commit | 4f89d930d3eb8414dc301262d7db448d257843bc (patch) | |
tree | d4bfef27baa3787a3eae94ceae666efbe5e5d8dd /monitor/udisks2 | |
parent | 253d78c25af2f527015834ab5edb1780028998c2 (diff) | |
download | gvfs-4f89d930d3eb8414dc301262d7db448d257843bc.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>
Diffstat (limited to 'monitor/udisks2')
-rw-r--r-- | 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 5037d73a..6decc192 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; |