Displaying 4 results from an estimated 4 matches for "adapt_block_size".
2002 Apr 23
1
patch: timeout problem solved
...end_sums(NULL,f_out);
+ send_null_sums(f_out);
return;
}
@@ -456,21 +425,17 @@
buf = NULL;
}
+ write_int(f_out,i); /* send file number */
if (verbose > 3)
rprintf(FINFO,"gen mapped %s of size %.0f\n",fnamecmp,(double)st.st_size);
- s = generate_sums(buf,st.st_size,adapt_block_size(file, block_size));
-
if (verbose > 2)
- rprintf(FINFO,"sending sums for %d\n",i);
+ rprintf(FINFO,"generating and sending sums for %d\n",i);
- write_int(f_out,i);
- send_sums(s,f_out);
+ generate_and_send_sums(buf,st.st_size,adapt_block_size(file, block_size),f_out);...
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
...3
@@ -32,7 +32,6 @@
extern int preserve_hard_links;
extern int update_only;
extern int opt_ignore_existing;
-extern int block_size;
extern int csum_length;
extern int ignore_times;
extern int size_only;
@@ -100,24 +99,9 @@
}
-/* use a larger block size for really big files */
-static int adapt_block_size(struct file_struct *file, int bsize)
-{
- int ret;
-
- if (bsize != BLOCK_SIZE) return bsize;
-
- ret = file->length / (10000); /* rough heuristic */
- ret = ret & ~15; /* multiple of 16 */
- if (ret < bsize) ret = bsize;
- if (ret > CHUNK_SIZE/2) ret = CHUNK_SIZE/2;
- return ret;
-}
-...
2003 Mar 23
1
[RFC] dynamic checksum size
...03
@@ -32,7 +32,6 @@
extern int preserve_hard_links;
extern int update_only;
extern int opt_ignore_existing;
-extern int block_size;
extern int csum_length;
extern int ignore_times;
extern int size_only;
@@ -93,20 +92,6 @@
}
-/* use a larger block size for really big files */
-static int adapt_block_size(struct file_struct *file, int bsize)
-{
- int ret;
-
- if (bsize != BLOCK_SIZE) return bsize;
-
- ret = file->length / (10000); /* rough heuristic */
- ret = ret & ~15; /* multiple of 16 */
- if (ret < bsize) ret = bsize;
- if (ret > CHUNK_SIZE/2) ret = CHUNK_SIZE/2;
- return ret;
-}
-...
2005 Jan 05
1
rsync filename heuristics
...> @@ -427,7 +426,7 @@
> }
>
> if (verbose > 3)
> - rprintf(FINFO,"gen mapped %s of size %.0f\n",fnamecmp,(double)st.st_size);
> + rprintf(FINFO,"gen mapped %s of size %.0f\n",fname,(double)st.st_size);
>
> s = generate_sums(buf,st.st_size,adapt_block_size(file, block_size));
>
> diff -urN rsync-2.5.4/options.c rsync-2.5.4-fuzzy/options.c
> --- rsync-2.5.4/options.c 2002-02-28 09:49:57.000000000 +1100
> +++ rsync-2.5.4-fuzzy/options.c 2002-04-03 16:43:54.000000000 +1000
> @@ -73,6 +73,7 @@
> #else
> int modify_window=0;
>...