Enlightenment CVS committal

Author  : chaos
Project : e17
Module  : apps/evfs

Dir     : e17/apps/evfs/src/bin


Modified Files:
        evfs_main.c evfs_metadata.c evfs_operation_tasks.c 


Log Message:
* Some test functions for trash handling

===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_main.c,v
retrieving revision 1.55
retrieving revision 1.56
diff -u -3 -r1.55 -r1.56
--- evfs_main.c 12 Aug 2006 08:17:23 -0000      1.55
+++ evfs_main.c 14 Aug 2006 11:07:48 -0000      1.56
@@ -574,7 +574,11 @@
    evfs_io_initialise();
    evfs_vfolder_initialise();
    evfs_operation_initialise();
-   evfs_metadata_initialise();
+   
+   if (argc >= 2 && !strcmp(argv[1], "-nometa"))
+       evfs_metadata_initialise(0);
+   else
+       evfs_metadata_initialise(1);              
 
 
    ecore_main_loop_begin();
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_metadata.c,v
retrieving revision 1.27
retrieving revision 1.28
diff -u -3 -r1.27 -r1.28
--- evfs_metadata.c     6 Aug 2006 04:29:22 -0000       1.27
+++ evfs_metadata.c     14 Aug 2006 11:07:48 -0000      1.28
@@ -278,7 +278,7 @@
        return exists;
 }
 
-void evfs_metadata_initialise()
+void evfs_metadata_initialise(int forker)
 {
        struct stat config_dir_stat;
        Evas_List* group;
@@ -390,8 +390,10 @@
                evfs_metadata_directory_scan_queue = ecore_list_new();
                ecore_list_append(evfs_metadata_directory_scan_queue, ref);
 
-               ecore_timer_add(0.5, evfs_metadata_scan_runner, NULL);
-               ecore_timer_add(0.5, evfs_metadata_extract_runner, NULL);
+               if (forker) {
+                       ecore_timer_add(0.5, evfs_metadata_scan_runner, NULL);
+                       ecore_timer_add(0.5, evfs_metadata_extract_runner, 
NULL);
+               }
        }
 
 }
===================================================================
RCS file: /cvs/e/e17/apps/evfs/src/bin/evfs_operation_tasks.c,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -3 -r1.9 -r1.10
--- evfs_operation_tasks.c      7 Aug 2006 16:31:28 -0000       1.9
+++ evfs_operation_tasks.c      14 Aug 2006 11:07:48 -0000      1.10
@@ -65,7 +65,8 @@
        }
 
        /*printf ("next_byte:size  -> %lld:%lld\n", copy->next_byte, 
copy->source_stat.st_size);        */
-       while (iter < TASK_COPY_ITERATIONS && 
+       if (copy->file_to->fd > 0) {
+          while (iter < TASK_COPY_ITERATIONS && 
                copy->next_byte < copy->source_stat.st_size) {
                int b_read = 0, b_write= 0;
 
@@ -98,6 +99,10 @@
 
 
                iter++;
+         }
+       } else {
+               printf("Destination File create error\n");
+               copy->next_byte = copy->source_stat.st_size;    
        }
 
        /*printf("Ending task, continuing operation...\n");*/



-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
enlightenment-cvs mailing list
enlightenment-cvs@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/enlightenment-cvs

Reply via email to