Displaying 5 results from an estimated 5 matches for "window_start".
2012 Jan 23
0
[PATCH] Btrfs: use cluster->window_start when allocating from a cluster bitmap
We specifically set window_start in the cluster struct to indicate where the
cluster starts in a bitmap, but we''ve been using min_start to indicate where
we''re searching from. This is usually the start of the blockgroup, so
essentially means we''re constantly searching from the start of any bitmap we
fin...
2004 Aug 02
4
reducing memmoves
...2 -0000
@@ -23,6 +23,7 @@
#include "rsync.h"
extern int sparse_files;
+int total_bytes_memmoved=0;
static char last_byte;
static int last_sparse;
@@ -182,8 +183,7 @@
/* nope, we are going to have to do a read. Work out our desired window */
if (offset > 2*CHUNK_SIZE) {
- window_start = offset - 2*CHUNK_SIZE;
- window_start &= ~((OFF_T)(CHUNK_SIZE-1)); /* assumes power of 2 */
+ window_start = offset;
} else {
window_start = 0;
}
@@ -212,6 +212,7 @@
read_offset = read_start - window_start;
read_size = window_size - read_offset;
memmove(map->p, map->p...
2004 Jun 16
3
[Bug 1463] New: poor performance with large block size
https://bugzilla.samba.org/show_bug.cgi?id=1463
Summary: poor performance with large block size
Product: rsync
Version: 2.6.2
Platform: x86
OS/Version: other
Status: NEW
Severity: normal
Priority: P3
Component: core
AssignedTo: wayned@samba.org
ReportedBy: wmatthews@sepaton.com
2002 Aug 05
5
[patch] read-devices
...ad window in the file.
+ * The state of the window is saved in the map->p* members.
+ * A subrange of this window corresponding to the request is
+ * saved in the map->m_* members, for the use of the caller. */
+void map_ptr(struct map_struct *map,OFF_T offset,int len)
{
- int nread;
OFF_T window_start, read_start;
int window_size, read_size, read_offset;
+ if (verbose>3) rprintf(FINFO, "#ET# map_ptr(%d,%.0f,%.0f)\n",(int)map,(double)offset,(double)len);
- if (len == 0) {
- return NULL;
+ /* produce a NULL result if past (currently known) end of file */
+ if (len == 0 || offset&...
2005 Sep 20
2
Nulls instead of data
In short:
Platform: linux with 2.4 kernel
Version: rsync 2.6.6
Command line:
rsync266 -av -W --bwlimit=1 /mnt/somedir/rsync-2.6.6.tar.gz ./
Destination: local disk
Source: file on a smbfs mounted filesystem; share is exported on a NT 4.0
workstation over a very slow and unstable link
Result: Rsync completes operation with no special message, but the
resulting file is damaged, large