summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Zeuthen <davidz@redhat.com>2012-04-30 17:29:22 -0400
committerDavid Zeuthen <davidz@redhat.com>2012-04-30 17:29:22 -0400
commitd8fa361eec2706091e9d7f166f63bb5c0f663f4b (patch)
treeaab11feea4017864032de7777c30553989247603
parent9a3939800e280efbac0efe22dca26799da894f4d (diff)
Also check for "target is busy" when checking umount(8) output
Apparently this changed recently... ideally umount(8) would simply return a well-defined exit code but that's not the way things work right now. Signed-off-by: David Zeuthen <davidz@redhat.com>
-rw-r--r--src/udiskslinuxfilesystem.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/udiskslinuxfilesystem.c b/src/udiskslinuxfilesystem.c
index 268f772..c53fba0 100644
--- a/src/udiskslinuxfilesystem.c
+++ b/src/udiskslinuxfilesystem.c
@@ -1582,7 +1582,8 @@ static guint
get_error_code_for_umount (gint exit_status,
const gchar *error_message)
{
- if (strstr (error_message, "device is busy") != NULL)
+ if (strstr (error_message, "device is busy") != NULL ||
+ strstr (error_message, "target is busy") != NULL)
return UDISKS_ERROR_DEVICE_BUSY;
else
return UDISKS_ERROR_FAILED;