Matt McCutchen's Web Site
/
rsync
/
rsync.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Added a max_map_size variable, initialized to MAX_MAP_SIZE.
[rsync/rsync.git]
/
fileio.c
diff --git
a/fileio.c
b/fileio.c
index
0756bfa
..
44ec8ef
100644
(file)
--- a/
fileio.c
+++ b/
fileio.c
@@
-24,6
+24,8
@@
extern int sparse_files;
extern int sparse_files;
+unsigned int max_map_size = MAX_MAP_SIZE;
+
static char last_byte;
static int last_sparse;
static char last_byte;
static int last_sparse;
@@
-186,7
+188,7
@@
char *map_ptr(struct map_struct *map,OFF_T offset,int len)
} else {
window_start = 0;
}
} else {
window_start = 0;
}
- window_size =
MAX_MAP_SIZE
;
+ window_size =
max_map_size
;
if (window_start + window_size > map->file_size) {
window_size = map->file_size - window_start;
}
if (window_start + window_size > map->file_size) {
window_size = map->file_size - window_start;
}