try to make it easier to track down what is going wrong.
Jarom, can you let me know what output this gives?
PS: the cvs commit messages for rsync are now sent to the rsync
mailing list. This will allow everyone to see what changes are being
made.
char *map_ptr(struct map_struct *map,off_t offset,int len)
{
char *map_ptr(struct map_struct *map,off_t offset,int len)
{
if (map->map)
return map->map+offset;
if (map->map)
return map->map+offset;
}
if (lseek(map->fd,offset,SEEK_SET) != offset ||
}
if (lseek(map->fd,offset,SEEK_SET) != offset ||
- read(map->fd,map->p,len) != len) {
- fprintf(FERROR,"EOF in map_ptr!\n");
+ (nread=read(map->fd,map->p,len)) != len) {
+ fprintf(FERROR,"EOF in map_ptr! (offset=%d len=%d nread=%d errno=%d)\n",
+ (int)offset, len, nread, errno);