diff options
author | Wayne Davison <wayned@samba.org> | 2004-07-16 18:02:30 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2004-07-16 18:02:30 +0000 |
commit | 510b4cd4d511ec3cd1480230d499f12fd1ca3f03 (patch) | |
tree | 68b89376f018183cd60419b54bfda52bb1dbc052 /fileio.c | |
parent | de584c658cbb30f0fa7d2d9037c4ccb29bb71417 (diff) | |
download | rsync-510b4cd4d511ec3cd1480230d499f12fd1ca3f03.tar.gz |
Added a max_map_size variable, initialized to MAX_MAP_SIZE.
Diffstat (limited to 'fileio.c')
-rw-r--r-- | fileio.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -24,6 +24,8 @@ extern int sparse_files; +unsigned int max_map_size = MAX_MAP_SIZE; + 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; } - 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; } |