Displaying 3 results from an estimated 3 matches for "read_start".
Did you mean:
thread_start
2005 Sep 20
2
Nulls instead of data
In short:
Platform: linux with 2.4 kernel
Version: rsync 2.6.6
Command line:
rsync266 -av -W --bwlimit=1 /mnt/somedir/rsync-2.6.6.tar.gz ./
Destination: local disk
Source: file on a smbfs mounted filesystem; share is exported on a NT 4.0
workstation over a very slow and unstable link
Result: Rsync completes operation with no special message, but the
resulting file is damaged, large
2002 Aug 05
5
[patch] read-devices
...he file.
+ * The state of the window is saved in the map->p* members.
+ * A subrange of this window corresponding to the request is
+ * saved in the map->m_* members, for the use of the caller. */
+void map_ptr(struct map_struct *map,OFF_T offset,int len)
{
- int nread;
OFF_T window_start, read_start;
int window_size, read_size, read_offset;
+ if (verbose>3) rprintf(FINFO, "#ET# map_ptr(%d,%.0f,%.0f)\n",(int)map,(double)offset,(double)len);
- if (len == 0) {
- return NULL;
+ /* produce a NULL result if past (currently known) end of file */
+ if (len == 0 || offset>=map->...
2004 Aug 02
4
reducing memmoves
...o have to do a read. Work out our desired window */
if (offset > 2*CHUNK_SIZE) {
- window_start = offset - 2*CHUNK_SIZE;
- window_start &= ~((OFF_T)(CHUNK_SIZE-1)); /* assumes power of 2 */
+ window_start = offset;
} else {
window_start = 0;
}
@@ -212,6 +212,7 @@
read_offset = read_start - window_start;
read_size = window_size - read_offset;
memmove(map->p, map->p + (map->p_len - read_offset), read_offset);
+ total_bytes_memmoved += read_offset;
} else {
read_start = window_start;
read_size = window_size;