From d0b5cf84cbc2432a90de45e3ee65d3893d9f1ec6 Mon Sep 17 00:00:00 2001 From: Ben Gras Date: Thu, 2 Jun 2005 16:49:33 +0000 Subject: [PATCH] Undid usage of vector-copy function. It's a good idea but there's a bug there somewhere. I'll debug first, then recommit. --- servers/fs/read.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/servers/fs/read.c b/servers/fs/read.c index 925869c98..e867405d0 100644 --- a/servers/fs/read.c +++ b/servers/fs/read.c @@ -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),