]> Zhao Yanbai Git Server - minix.git/commitdiff
Undid usage of vector-copy function. It's a good idea but there's a bug
authorBen Gras <ben@minix3.org>
Thu, 2 Jun 2005 16:49:33 +0000 (16:49 +0000)
committerBen Gras <ben@minix3.org>
Thu, 2 Jun 2005 16:49:33 +0000 (16:49 +0000)
there somewhere. I'll debug first, then recommit.

servers/fs/read.c

index 925869c989fa29f14587bca7534750212b207415..e867405d0905aa75e27ae1806e17700bc1a6a168 100644 (file)
@@ -210,8 +210,10 @@ int rw_flag;                       /* READING or WRITING */
        }
   }
 
+#if 0
   /* do copying to/from user space */
   r2 = rw_chunk_finish(&completed);
+#endif
 
   /* On write, update file size and access time. */
   if (rw_flag == WRITING) {
@@ -330,7 +332,7 @@ int *completed;                     /* number of bytes copied */
        zero_block(bp);
   }
 
-#if 0
+#if 1
   if (rw_flag == READING) {
        /* Copy a chunk from the block buffer to user space. */
        r = sys_vircopy(FS_PROC_NR, D, (phys_bytes) (bp->b_data+off),