Displaying 8 results from an estimated 8 matches for "read_longint".
2004 Jul 22
2
Strange behaviour rsync pull from sun to ppc linux, Integer overflow - attempted 64 bit offset
Hi,
I am running rsync on an embedded linux (ppc) like this:
rsync -avvv sun::file-system/ /rsyncexperiment
Where sun is a solaris machine that has rsync:
rsync version 2.5.7 protocol version 26
Copyright (C) 1996-2002 by Andrew Tridgell and others
<http://rsync.samba.org/>
Capabilities: 64-bit files, socketpairs, hard links, symlinks,
batchfiles, no IPv6, 64-bit system inums,
2004 Feb 06
4
memory reduction
...68,15 +668,19 @@ void receive_file_entry(struct file_stru
#if SUPPORT_HARD_LINKS
if (idev_len) {
+ INO64_T inode;
if (protocol_version < 26) {
dev = read_int(f);
- file->F_INODE = read_int(f);
+ inode = read_int(f);
} else {
if (!(flags & XMIT_SAME_DEV))
dev = read_longint(f);
- file->F_INODE = read_longint(f);
+ inode = read_longint(f);
+ }
+ if (flist->hlink_pool) {
+ file->F_INODE = inode;
+ file->F_DEV = dev;
}
- file->F_DEV = dev;
}
#endif
@@ -720,7 +724,8 @@ void receive_file_entry(struct file_stru
* statting directories if w...
2004 Apr 21
1
rsync-2.6.1pre-1 hang
...at receiver.c:438
#98 0x08050e43 in msleep (t=3) at util.c:1000
#99 0x080514c1 in show_malloc_stats () at main.c:194
#100 0x08062628 in write_batch_flist_info (flist_count=3, files=0x3) at batch.c:43
#101 0x08062d35 in write_batch_csum_info (flist_entry=0x3, s=0x3) at batch.c:202
#102 0x0805d2be in read_longint (f=873) at io.c:710
#103 0x08062f73 in read_batch_csum_info (flist_entry=0, s=0x0, checksums_match=0x1) at batch.c:256
#104 0x0805219b in do_server_recv (f_in=0, f_out=0, argc=1501700484, argv=0x2a2514bc) at main.c:518
#105 0x2a287cf9 in ?? ()
#106 0x00000000 in ?? ()
#107 0x00000000 in ?? ()
#108...
2004 Apr 10
0
patches for copying atimes
...DEV64_T rdev, rdev_high;
static DEV64_T dev;
@@ -524,7 +534,7 @@
struct file_struct *file;
if (!fptr) {
- modtime = 0, mode = 0;
+ modtime = 0, atime = 0, mode = 0;
rdev = 0, rdev_high = 0, dev = 0;
uid = 0, gid = 0;
*lastname = '\0';
@@ -575,6 +585,11 @@
file_length = read_longint(f);
if (!(flags & XMIT_SAME_TIME))
modtime = (time_t)read_int(f);
+ if (protocol_version > 28) {
+ if (!(flags & XMIT_SAME_ATIME))
+ atime = (time_t)read_int(f);
+ } else
+ atime = time(NULL);
if (!(flags & XMIT_SAME_...
2006 Jan 24
1
propagate atimes with rsync-2.6.6 (fwd)
...mode;
static int64 dev;
static dev_t rdev;
@@ -524,7 +531,7 @@
struct file_struct *file;
if (!flist) {
- modtime = 0, mode = 0;
+ modtime = 0, acctime = 0, mode = 0;
dev = 0, rdev = makedev(0, 0);
rdev_major = 0;
uid = 0, gid = 0;
@@ -578,6 +585,10 @@
file_length = read_longint(f);
if (!(flags & XMIT_SAME_TIME))
modtime = (time_t)read_int(f);
+ if (remote_protocol >= 30)
+ acctime = (time_t)read_int(f);
+ else
+ acctime = time(NULL);
if (!(flags & XMIT_SAME_MODE))
mode = from_wire_mode(read_int(f));
@@ -630,6 +641,7 @@
file->flags = 0;
fi...
2004 Jan 17
1
--delete-sent-files (AKA --move-files)
...Jan 2004 01:16:49 -0000 1.165
+++ flist.c 17 Jan 2004 05:04:54 -0000
@@ -602,7 +602,7 @@ void receive_file_entry(struct file_stru
if (!file->basename)
out_of_memory("receive_file_entry 1");
- file->flags = flags;
+ file->flags = flags & LIVE_FLAGS;
file->length = read_longint(f);
if (!(flags & SAME_TIME))
modtime = (time_t)read_int(f);
Index: io.c
--- io.c 16 Jan 2004 16:31:47 -0000 1.119
+++ io.c 17 Jan 2004 05:04:54 -0000
@@ -222,6 +222,14 @@ static void read_msg_fd(void)
read_loop(fd, buf, 4);
redo_list_add(IVAL(buf,0));
break;
+ case MSG_SUCCESS:
+...
2004 Apr 20
1
improved atime patch
...tatic mode_t mode;
static uint64 dev;
static dev_t rdev;
@@ -534,7 +544,7 @@
struct file_struct *file;
if (!fptr) {
- modtime = 0, mode = 0;
+ modtime = 0, atime = 0, mode = 0;
dev = 0, rdev = makedev(0, 0);
rdev_major = 0;
uid = 0, gid = 0;
@@ -586,6 +596,11 @@
file_length = read_longint(f);
if (!(flags & XMIT_SAME_TIME))
modtime = (time_t)read_int(f);
+ if (protocol_version > 28) {
+ if (!(flags & XMIT_SAME_ATIME))
+ atime = (time_t)read_int(f);
+ } else
+ atime = time(NULL);
if (!(flags & XMIT_SAME_...
2003 Oct 03
2
Cygwin/rsync Hang Problem Testing Results
People of cygwin & rsync,
I recently attempted to get cygwin and rsync working to solve a
backup/mirroring need in my computer life. Well, as you might guess, I
ran into a little but of trouble.
Strangely enough, rsync seemed to be regularly hanging when I attempted
to do a "get" (sycronize a remote to a local dir). Well, considering I
want to automate this, that was not going