search for: f_in

Displaying 20 results from an estimated 131 matches for "f_in".

2003 Jan 03
1
[Fwd: Re: rsync windows -> unix still hanging :(]
...========== RCS file: /cvsroot/rsync/main.c,v retrieving revision 1.156 diff -c -r1.156 main.c *** main.c 1 Aug 2002 20:46:59 -0000 1.156 --- main.c 31 Dec 2002 01:21:34 -0000 *************** *** 346,351 **** --- 346,353 ---- exit_cleanup(0); } + io_start_buffering_in(f_in); + io_start_buffering_out(f_out); send_files(flist,f_out,f_in); io_flush(); report(f_out); *************** *** 421,427 **** close(error_pipe[1]); if (f_in != f_out) close(f_in); ! io_start_buffering(f_out); io_set_error_fd(error_pipe[0]); --- 423,429 --...
2013 Dec 01
0
[PATCH v2 4/4] efi: PE file size differ from in-memory size
...ogname) int main(int argc, char **argv) { - struct stat st; Elf32_Ehdr e32_hdr; Elf64_Ehdr e64_hdr; __uint32_t entry; __uint8_t class; - __uint64_t shoff; - __uint16_t shnum, shentsize, shstrndx; + __uint64_t phoff = 0; + __uint16_t phnum = 0, phentsize = 0; unsigned char *id; FILE *f_in, *f_out; void *buf; - size_t datasz, rv; + size_t datasz, memsz, rv; if (argc < 3) { usage(argv[0]); @@ -184,11 +183,6 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (stat(argv[1], &st) != 0) { - perror("stat"); - exit(EXIT_FAILURE); - } - f_out =...
2013 Nov 27
0
[PATCH 4/4] efi: PE file size differ from in-memory size
...ogname) int main(int argc, char **argv) { - struct stat st; Elf32_Ehdr e32_hdr; Elf64_Ehdr e64_hdr; __uint32_t entry; __uint8_t class; - __uint64_t shoff; - __uint16_t shnum, shentsize, shstrndx; + __uint64_t phoff = 0; + __uint16_t phnum = 0, phentsize = 0; unsigned char *id; FILE *f_in, *f_out; void *buf; - size_t datasz, rv; + size_t datasz, memsz, rv; if (argc < 3) { usage(argv[0]); @@ -180,11 +179,6 @@ int main(int argc, char **argv) exit(EXIT_FAILURE); } - if (stat(argv[1], &st) != 0) { - perror("stat"); - exit(EXIT_FAILURE); - } - f_out =...
2013 Nov 27
20
[PATCH 0/4] efi: PE header generation fix
The PE headers of the generated efi file were quite buggy. And since OVMF perform a few consistency checks, syslinux was unable to run on it. I don't pretend to have a thorough understanding of the PE+ headers, some bugs may remain. :) Celelibi (4): efi: Fix PE header field rva_and_sizes_nr efi: Location, size and alignment of .text section efi: Useless relocations in PE file efi: PE
2004 Jul 12
2
[PATCH] Batch-mode rewrite
...t; extern char *exclude_path_prefix; extern char *config_file; + extern int write_batch; + extern int batch_fd; char *auth_user; *************** *** 97,109 **** return ret < 0? ret : client_run(fd, fd, -1, argc, argv); } ! int start_inband_exchange(char *user, char *path, int f_in, int f_out, int argc) { int i; char *sargs[MAX_ARGS]; int sargc = 0; char line[MAXPATHLEN]; char *p; if (argc == 0 && !am_sender) list_only = 1; --- 99,121 ---- return ret < 0? ret : client_run(fd, fd, -1, argc, argv); } ! /* start_inband_exchange() con...
2007 Dec 28
2
hang with rsync 3.0.0pre7 doing local copy
...5 #3 0x00000000004244d5 in readfd_unbuffered (fd=5, buf=0x7fff1d3adc70 "", len=1) at io.c:1022 #4 0x0000000000424a93 in readfd (fd=5, buffer=0x7fff1d3adc70 "", N=1) at io.c:1144 #5 0x0000000000425b20 in read_ndx (f=5) at io.c:1749 #6 0x000000000040a957 in read_ndx_and_attrs (f_in=5, iflag_ptr=0x7fff1d3afe38, type_ptr=0x7fff1d3afe3f "", buf=0x7fff1d3add50 "", len_ptr=0x7fff1d3afe34) at rsync.c:218 #7 0x00000000004125ea in send_files (f_in=5, f_out=4) at sender.c:193 #8 0x00000000004194f7 in client_run (f_in=5, f_out=4, pid=3713, argc=1, argv=0x66f240) a...
2011 May 15
0
rsync client and server processes, all hanging in read_timeout()
...(fd=3, buffer=0x7fff5fbfdee0 "", N=4) at io.c:1157 #4 0x000000010002da8c in read_msg_fd () at io.c:338 #5 0x000000010002e7b4 in wait_for_receiver () at io.c:540 #6 0x00000001000132f8 in generate_files (f_out=4, local_name=0x0) at generator.c:2290 #7 0x0000000100020f48 in do_recv (f_in=5, f_out=4, local_name=0x0) at main.c:833 #8 0x000000010002179f in client_run (f_in=5, f_out=4, pid=64758, argc=1, argv=0x100100398) at main.c:1070 #9 0x00000001000220ff in start_client (argc=1, argv=0x100100398) at main.c:1277 #10 0x00000001000227ea in main (argc=2, argv=0x100100390) at ma...
2001 Dec 18
3
rsync hang, more details [LONG]
...buf=0x591d8 "\a\020", len=62) at io.c:498 #4 0x24f24 in io_flush () at io.c:518 #5 0x24940 in readfd (fd=0, buffer=0xffbe7020 "?\002r\215?/\201R", N=4) at io.c:314 #6 0x24998 in read_int (f=0) at io.c:329 #7 0x199a4 in send_files (flist=0x574e8, f_out=1, f_in=0) at sender.c:110 #8 0x1d1e8 in do_server_sender (f_in=0, f_out=1, argc=1, argv=0x56f74) at main.c:300 #9 0x1d708 in start_server (f_in=0, f_out=1, argc=2, argv=0x56f70) at main.c:476 #10 0x1e08c in main (argc=2, argv=0x56f70) at main.c:838 Backtrace #1 on client (the parent):...
2004 Apr 21
1
rsync-2.6.1pre-1 hang
...flist.c:1033 #7 0x08053e1a in hash_search (f=1, s=0x0, buf=0x0, len=577936410078638920) at match.c:170 #8 0x08054003 in hash_search (f=1, s=0x0, buf=0x0, len=0) at match.c:202 #9 0x08054726 in match_sums (f=30, s=0x806d638, buf=0x0, len=128983684031) at match.c:319 #10 0x0804d1e4 in recv_files (f_in=30, flist=0x80712b1, local_name=0x6d <Address 0x6d out of bounds>) at receiver.c:349 #11 0x080593ef in receive_file_entry (fptr=0x0, flags=0, flist=0x0, f=0) at flist.c:593 #12 0x0805a2f5 in send_file_name (f=3, flist=0x0, fname=0x0, recursive=0, base_flags=0) at flist.c:920 #13 0x0805a3bc in...
2001 Aug 06
1
merge rsync+ into rsync (was Re: rsync-2.4.7 NEWS file)
> Just curious: what about the rsync+ patch? Thanks for the reminder. I've just committed Jos's rsync+ patch onto the "branch_mbp_rsyncplus_merge" branch. If it works OK and nobody screams I will move it across onto the main tree tomorrow or Wednesday. I see the patch doesn't add documentation about the new options to the man page, so we should fix that in the future.
2008 Aug 18
8
DO NOT REPLY [Bug 5701] New: deadlock on local rsyncing, bisected to commit f303b749f2843433c9acd8218a4b9096d0d1bb8d
https://bugzilla.samba.org/show_bug.cgi?id=5701 Summary: deadlock on local rsyncing, bisected to commit f303b749f2843433c9acd8218a4b9096d0d1bb8d Product: rsync Version: 3.1.0 Platform: All OS/Version: Linux Status: NEW Severity: major Priority: P3 Component: core AssignedTo:
2001 Nov 20
2
rsync server over SSH [includes code patches]
...there is any way to get modules with ssh. GORY DETAILS: The code changes are about 150 lines, plus 70 lines of man page changes. Most of the code changes were to several functions (e.g. auth_server(), start_accept_loop(), rsync_module(), start_daemon()) to make them handle two file descriptors (f_in and f_out) instead of one bidirectional socket file descriptor (fd). Other changes include: - main() will call start_daemon() instead of start_server() if the program is called with both '--server' and '--daemon'. - start_daemon() is modified to no longer be static (it need...
2016 Jan 21
1
[Bug 11683] New: hang on select when send many files
...matted (code=FLOG, format=<value optimized out>, op=0x45170a "recv", file=0x7f976a8cb360, fname=0x0, iflags=40960, hlink=0x0) at log.c:769 #5 0x0000000000422eaa in log_item (code=FINFO, file=0x7f976a8cb360, iflags=40960, hlink=0x0) at log.c:806 #6 0x0000000000413966 in recv_files (f_in=3, f_out=7, local_name=0x0) at receiver.c:852 #7 0x000000000041d3dc in do_recv (f_in=3, f_out=7, local_name=0x0) at main.c:901 #8 0x000000000041dbbd in do_server_recv (f_in=3, f_out=3, argc=<value optimized out>, argv=<value optimized out>) at main.c:1070 #9 start_server (f_in=3, f_o...
2017 Apr 05
0
Transfer hangs, both sides waiting on receive
...683 in read_a_msg () at io.c:1423 #4 0x00007f87d88e0676 in read_buf (f=f at entry=4, buf=buf at entry=0x7ffd814c0df0 "\300\037L\201\375\177", len=len at entry=1) at io.c:1835 #5 0x00007f87d88e157b in read_ndx (f=f at entry=4) at io.c:2222 #6 0x00007f87d88be377 in read_ndx_and_attrs (f_in=4, f_out=6, iflag_ptr=0x7ffd814c0f28, type_ptr=0x7ffd814c0f27 "\200\b", buf=0x7ffd814c1fc0 "", len_ptr=0x7ffd814c0f2c) at rsync.c:320 #7 0x00007f87d88c5b5e in recv_files (f_in=5, f_out=-2125728480, local_name=0x7ffd814c0fc0 "some_dbase") at receiver.c:548 #8...
2009 Nov 04
0
PATCH: fast copy of files in local server mode
...v(); #endif @@ -157,6 +168,9 @@ } if (close(from_child_pipe[1]) < 0 || +#ifdef HAVE_SOCKETPAIR + close(child_socket[0]) < 0 || +#endif close(to_child_pipe[0]) < 0) { rsyserr(FERROR, errno, "Failed to close"); exit_cleanup(RERR_IPC); @@ -164,6 +178,9 @@ *f_in = from_child_pipe[0]; *f_out = to_child_pipe[1]; +#ifdef HAVE_SOCKETPAIR + local_socket = child_socket[1]; +#endif return pid; } diff -au rsync-3.0.6/receiver.c rsync-3.0.6.fast/receiver.c --- rsync-3.0.6/receiver.c 2009-04-12 22:48:59.000000000 +0300 +++ rsync-3.0.6.fast/receiver.c 2009-09-...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...links(struct file_list *flist); int hard_link_check(struct file_struct *file, int skip); void do_hard_links(void); patchwork diff receiver.c --- receiver.c 2004-02-23 10:22:51.000000000 -0500 +++ receiver.c 2004-02-23 10:22:51.000000000 -0500 @@ -186,10 +186,11 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname, - OFF_T total_size) + OFF_T total_size,char *md4) { int i; struct sum_struct sum; + struct mdfour mdfour_data; unsigned int len; OFF_T offset = 0; OFF_T offset2; @@ -199,7 +200,9 @@ char *map=NULL; read_sum_head(f_in, &sum); - +...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...links(struct file_list *flist); int hard_link_check(struct file_struct *file, int skip); void do_hard_links(void); patchwork diff receiver.c --- receiver.c 2004-02-17 10:36:44.000000000 -0500 +++ receiver.c 2004-02-17 13:10:23.000000000 -0500 @@ -186,10 +186,11 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname, - OFF_T total_size) + OFF_T total_size,char *md4) { int i; struct sum_struct sum; + struct mdfour mdfour_data; unsigned int len; OFF_T offset = 0; OFF_T offset2; @@ -199,7 +200,9 @@ char *map=NULL; read_sum_head(f_in, &sum); - +...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...links(struct file_list *flist); int hard_link_check(struct file_struct *file, int skip); void do_hard_links(void); patchwork diff receiver.c --- receiver.c 2004-02-23 10:22:51.000000000 -0500 +++ receiver.c 2004-02-23 10:22:51.000000000 -0500 @@ -186,10 +186,11 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname, - OFF_T total_size) + OFF_T total_size,char *md4) { int i; struct sum_struct sum; + struct mdfour mdfour_data; unsigned int len; OFF_T offset = 0; OFF_T offset2; @@ -199,7 +200,9 @@ char *map=NULL; read_sum_head(f_in, &sum); - +...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...links(struct file_list *flist); int hard_link_check(struct file_struct *file, int skip); void do_hard_links(void); patchwork diff receiver.c --- receiver.c 2004-02-16 10:24:39.000000000 -0500 +++ receiver.c 2004-02-16 10:19:41.000000000 -0500 @@ -186,10 +186,11 @@ static int receive_data(int f_in,struct map_struct *mapbuf,int fd,char *fname, - OFF_T total_size) + OFF_T total_size,char *md4) { int i; struct sum_struct sum; + struct mdfour mdfour_data; unsigned int len; OFF_T offset = 0; OFF_T offset2; @@ -199,7 +200,9 @@ char *map=NULL; read_sum_head(f_in, &sum); - +...
2003 Jul 24
0
(no subject)
...otebatch/main.c *** rsync-2.5.6/main.c Tue Jan 28 05:05:53 2003 --- rsync-2.5.6-remotebatch/main.c Wed Jul 23 15:55:18 2003 *************** *** 263,270 **** } if (local_server) { - if (read_batch) - create_flist_from_batch(); /* sets batch_flist */ ret = local_child(argc, args, f_in, f_out, child_main); } else { ret = piped_child(args,f_in,f_out); --- 263,268 ---- *************** *** 505,515 **** if (delete_mode && !delete_excluded) recv_exclude_list(f_in); ! ! if (read_batch) ! flist = batch_flist; ! else ! flist = recv_file_list(f_in);...