summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2004-08-03 15:41:16 +0000
committerWayne Davison <wayned@samba.org>2004-08-03 15:41:16 +0000
commit61542c41de55fc31c583d43651d99cc67846e232 (patch)
tree6787ebe03cd7e66f090f85a431abfa9c48bb64ce
parentbd1a581beee5402379052df58164f57d99c7757a (diff)
downloadrsync-61542c41de55fc31c583d43651d99cc67846e232.tar.gz
rsync-61542c41de55fc31c583d43651d99cc67846e232.tar.bz2
rsync-61542c41de55fc31c583d43651d99cc67846e232.zip
Decided that we don't need to limit the block size after all now
that the map_file() code handles large block sizes better.
-rw-r--r--generator.c1
-rw-r--r--options.c6
-rw-r--r--rsync.h3
3 files changed, 1 insertions, 9 deletions
diff --git a/generator.c b/generator.c
index 04975b6c..9c78e64b 100644
--- a/generator.c
+++ b/generator.c
@@ -154,7 +154,6 @@ static void sum_sizes_sqroot(struct sum_struct *sum, uint64 len)
c >>= 1;
} while (c >= 8); /* round to multiple of 8 */
blength = MAX(blength, BLOCK_SIZE);
- blength = MIN(blength, MAX_BLOCK_SIZE);
}
if (protocol_version < 27) {
diff --git a/options.c b/options.c
index c8d1a5cd..b0cf7234 100644
--- a/options.c
+++ b/options.c
@@ -660,12 +660,6 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
}
#endif
- if (block_size > MAX_BLOCK_SIZE) {
- rprintf(FINFO, "limiting block-size to %d bytes\n",
- MAX_BLOCK_SIZE);
- block_size = MAX_BLOCK_SIZE;
- }
-
if (write_batch && read_batch) {
snprintf(err_buf, sizeof err_buf,
"--write-batch and --read-batch can not be used together\n");
diff --git a/rsync.h b/rsync.h
index 79bd0ae9..086eb422 100644
--- a/rsync.h
+++ b/rsync.h
@@ -90,8 +90,7 @@
#define SPARSE_WRITE_SIZE (1024)
#define WRITE_SIZE (32*1024)
#define CHUNK_SIZE (32*1024)
-#define MAX_MAP_SIZE (512*1024)
-#define MAX_BLOCK_SIZE (256*1024)
+#define MAX_MAP_SIZE (256*1024)
#define IO_BUFFER_SIZE (4092)
#define IOERR_GENERAL (1<<0) /* For backward compatibility, this must == 1 */