Enlightenment CVS committal

Author  : raster
Project : e17
Module  : apps/e

Dir     : e17/apps/e/src/bin


Modified Files:
        e_fm.c 


Log Message:


cdrom happy fun time works
missing uuid for cd's

===================================================================
RCS file: /cvs/e/e17/apps/e/src/bin/e_fm.c,v
retrieving revision 1.179
retrieving revision 1.180
diff -u -3 -r1.179 -r1.180
--- e_fm.c      17 Jun 2007 00:34:18 -0000      1.179
+++ e_fm.c      17 Jun 2007 00:50:53 -0000      1.180
@@ -2456,7 +2456,23 @@
                  printf("VOL+\n  udi: %s\n  uuid: %s\n  fstype: %s\n  label: 
%s\n  partition: %d\n  partition_label: %s\n  mounted: %d\n  mount_point: %s\n  
parent: %s\n", v->udi, v->uuid, v->fstype,  v->label, v->partition, 
v->partition ? v->partition_label : "(not a partition)", v->mounted, 
v->mount_point, v->parent);
                  s = e_storage_find(v->parent);
                  if (!v->mount_point)
-                   v->mount_point = strdup(v->uuid);
+                   {
+                      if (v->uuid)
+                        v->mount_point = strdup(v->uuid);
+                      else if (v->label)
+                        v->mount_point = strdup(v->label);
+                      else if (v->storage->serial)
+                        v->mount_point = strdup(v->storage->serial);
+                      else
+                        {
+                           char buf[256];
+                           static int mount_count = 0;
+                           
+                           snprintf(buf, sizeof(buf), "unknown-%i\n", 
mount_count);
+                           mount_count++;
+                           v->mount_point = strdup(buf);
+                        }
+                   }
                  if (s)
                    {
                       v->storage = s;



-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to