search for: sparse_write_size

Displaying 5 results from an estimated 5 matches for "sparse_write_size".

2003 Apr 27
4
Bogus rsync "Success" message when out of disk space
...ileio.c Sat Apr 26 12:16:25 2003 @@ -69,25 +69,28 @@ return len; } int write_file(int f,char *buf,size_t len) { int ret = 0; - if (!sparse_files) { - return write(f,buf,len); - } - while (len>0) { - int len1 = MIN(len, SPARSE_WRITE_SIZE); - int r1 = write_sparse(f, buf, len1); + int r1; + if (sparse_files) { + int len1 = MIN(len, SPARSE_WRITE_SIZE); + r1 = write_sparse(f, buf, len1); + } else { + /* Normal writ...
2008 Mar 23
1
[PATCH] allow to change the block size used to handle sparse files
...@ -26,6 +26,7 @@ #endif extern int sparse_files; +extern long sparse_files_block_size; static char last_byte; static size_t sparse_seek = 0; @@ -115,7 +116,7 @@ int write_file(int f,char *buf,size_t len) while (len > 0) { int r1; if (sparse_files > 0) { - int len1 = MIN(len, SPARSE_WRITE_SIZE); + int len1 = MIN(len, (size_t)sparse_files_block_size); r1 = write_sparse(f, buf, len1); } else { if (!wf_writeBuf) { diff --git a/options.c b/options.c index f2d23f6..aaffdc7 100644 --- a/options.c +++ b/options.c @@ -73,6 +73,7 @@ int remove_source_files = 0; int one_file_system =...
2011 Oct 07
5
[Bug 8512] New: rsync -a slower than cp -a
https://bugzilla.samba.org/show_bug.cgi?id=8512 Summary: rsync -a slower than cp -a Product: rsync Version: 3.1.0 Platform: All OS/Version: All Status: NEW Severity: normal Priority: P5 Component: core AssignedTo: wayned at samba.org ReportedBy: linux.news at bucksch.org QAContact:
2009 Apr 29
1
Slowness and sparse files
...sparse bytes before doing a seek? I would suspect seeking increases the overheads quite a bit. Can file systems actually record such small numbers of sparse bytes? I would assume that they work on the block basis for sparse files (at least on ext2 etc), so it's not clear to me why rsync has SPARSE_WRITE_SIZE set to 1024 (rather than 4096), and why there isn't a minimum threshold of ~1024 bytes before seeking. It's not clear to me that this is my problem, but at least it would be a sensible optimisation. Jeremy -- Jeremy Sanders <jeremy@jeremysanders.net> http://www.jeremysanders.ne...
2004 Aug 02
4
reducing memmoves
Attached is a patch that makes window strides constant when files are walked with a constant block size. In these cases, it completely avoids all memmoves. In my simple local test of rsyncing 57MB of 10 local files, memmoved bytes went from 18MB to zero. I haven't tested this for a big variety of file cases. I think that this will always reduce the memmoves involved with walking a large