search for: read_offset

Displaying 6 results from an estimated 6 matches for "read_offset".

Did you mean: load_offset
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
2004 Aug 02
4
reducing memmoves
...we are going to 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;
2003 Aug 24
1
readdir() and read() errors ignored
...============================================================== RCS file: /cvsroot/rsync/fileio.c,v retrieving revision 1.6 diff -u -r1.6 fileio.c --- fileio.c 22 May 2003 23:24:44 -0000 1.6 +++ fileio.c 23 Aug 2003 23:03:01 -0000 @@ -191,7 +191,10 @@ } if ((nread=read(map->fd,map->p + read_offset,read_size)) != read_size) { - if (nread < 0) nread = 0; + if (nread < 0) { + rprintf(FERROR,"read failed in map_ptr\n"); + exit_cleanup(RERR_FILEIO); + } /* the best we can do is zero the buffer - the file has changed mid transfer! */ memset(map->p+read...
2003 Aug 15
2
Inadequate error checking in rsync 2.5.5
I'm using rsync to mirror files from a Windows XP machine mounted via smbfs. Apparently I have something configured wrong as I get a "permisson denied" error accessing some of the files on the smbfs mount with cp, od, etc. However, rsync produces no error messages on these files. It happily creates files in the target directory that are the right size, but filled with null bytes.
2002 Aug 05
5
[patch] read-devices
...ved 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->file_size) { + map->m_ptr = NULL; + ma...
2001 Mar 13
5
is this null block OK?
...gt;fset_lml.fd_truncating = 0; write_unlock(&fset->fset_lml.fd_lock); return rc; } /* write closes for the local close records in the LML */ int presto_complete_lml(struct presto_file_set *fset) { __u32 groups[NGROUPS_MAX]; loff_t lml_offset; loff_t read_offset; char *buffer; void *handle; struct close_rec { struct presto_version new_file_ver; __u64 ino; __u32 generation; __u32 pathlen; __u64 remote_ino; __u32 remote_generation;...