[prev in list] [next in list] [prev in thread] [next in thread]
List: enlightenment-svn
Subject: E SVN: discomfitor trunk/e/src/bin/e_fm
From: "Enlightenment SVN" <no-reply () enlightenment ! org>
Date: 2011-06-30 8:16:43
Message-ID: 20110630081643.D03BA1180C3 () e2 ! enlightenment ! org
[Download RAW message or body]
Log:
add check for mount success to counteract some eeze bug, unlink tmp mount point directory on umount/eject
Author: discomfitor
Date: 2011-06-30 01:16:43 -0700 (Thu, 30 Jun 2011)
New Revision: 60867
Trac: http://trac.enlightenment.org/e/changeset/60867
Modified:
trunk/e/src/bin/e_fm/e_fm_main_eeze.c
Modified: trunk/e/src/bin/e_fm/e_fm_main_eeze.c
===================================================================
--- trunk/e/src/bin/e_fm/e_fm_main_eeze.c 2011-06-30 08:15:42 UTC (rev 60866)
+++ trunk/e/src/bin/e_fm/e_fm_main_eeze.c 2011-06-30 08:16:43 UTC (rev 60867)
@@ -143,6 +143,11 @@
v->guard = NULL;
}
+ if (!eeze_disk_mounted_get(ev->disk))
+ {
+ ERR("Mount of '%s' failed!", v->udi);
+ return ECORE_CALLBACK_RENEW;
+ }
v->mounted = EINA_TRUE;
INF("MOUNT: %s from %s", v->udi, v->mount_point);
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
@@ -217,6 +222,8 @@
v->mounted = EINA_FALSE;
INF("UNMOUNT: %s from %s", v->udi, v->mount_point);
+ if (!memcmp(v->mount_point, "/media/", 7))
+ unlink(v->mount_point);
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
buf = alloca(size);
strcpy(buf, v->udi);
@@ -261,7 +268,9 @@
}
v->mounted = EINA_TRUE;
- INF("MOUNT: %s from %s", v->udi, v->mount_point);
+ INF("EJECT: %s from %s", v->udi, v->mount_point);
+ if (!memcmp(v->mount_point, "/media/", 7))
+ unlink(v->mount_point);
size = strlen(v->udi) + 1 + strlen(v->mount_point) + 1;
buf = alloca(size);
strcpy(buf, v->udi);
------------------------------------------------------------------------------
All of the data generated in your IT infrastructure is seriously valuable.
Why? It contains a definitive record of application performance, security
threats, fraudulent activity, and more. Splunk takes this data and makes
sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-d2d-c2
_______________________________________________
enlightenment-svn mailing list
enlightenment-svn@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-svn
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic