From: Ben Gras Date: Thu, 2 Jun 2005 16:49:33 +0000 (+0000) Subject: Undid usage of vector-copy function. It's a good idea but there's a bug X-Git-Tag: v3.1.0~777 X-Git-Url: http://zhaoyanbai.com/repos/%22http:/www.isc.org/icons/mult.png?a=commitdiff_plain;h=d0b5cf84cbc2432a90de45e3ee65d3893d9f1ec6;p=minix.git Undid usage of vector-copy function. It's a good idea but there's a bug there somewhere. I'll debug first, then recommit. --- 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),