Displaying 2 results from an estimated 2 matches for "preallocated_len".
2012 Apr 04
0
bug in rsync write-devices patch
...elow), which seemed to make things work although it should be coded more cleanly. Thanks.
Ryan
Informal description of changes from receiver.c line 369:
Original code (after applying write-devices patch):
#ifdef HAVE_TRUNCATE
If((inplace
#ifdef PREALLOCATE_NEEDS_TRUNCATE
|| preallocated_len > offset
#endif
) && fd != -1 && !IS_DEVICE(file->mode) && do_ftruncate(fd, offset) < 0) {
Code after change:
#ifdef HAVE_TRUNCATE
{
STRUCT_STAT st;
Do_fstat(fd, &st);
If((inplace
#ifdef PREALL...
2023 May 16
1
xfer_sum_len type bug
...s_file;
char sender_file_sum[MAX_DIGEST_LEN];
diff -Naur rsync-3.2.7.patch_orig/receiver.c rsync-3.2.7.patched/receiver.c
--- rsync-3.2.7.patch_orig/receiver.c 2023-05-16 14:17:31.082521665 -0400
+++ rsync-3.2.7.patched/receiver.c 2023-05-16 15:37:10.401929552 -0400
@@ -75,7 +75,7 @@
extern OFF_T preallocated_len;
extern struct name_num_item *xfer_sum_nni;
-extern int xfer_sum_len;
+extern size_t xfer_sum_len;
static struct bitbag *delayed_bits = NULL;
static int phase = 0, redoing = 0;
---------8K----------
--
Derek Martin
Principal System Software Engineer
Akamai Technologies
demartin at akamai....