search for: flist_new

Displaying 10 results from an estimated 10 matches for "flist_new".

2004 Feb 06
4
memory reduction
...-- cvs/batch.c Thu Feb 5 20:47:31 2004 +++ pool2/batch.c Thu Feb 5 20:51:14 2004 @@ -136,9 +136,7 @@ struct file_list *create_flist_from_batc exit_cleanup(1); } - batch_flist = new(struct file_list); - if (!batch_flist) - out_of_memory("create_flist_from_batch"); + batch_flist = flist_new(WITH_HLINK, "create_flist_from_batch"); save_read = stats.total_read; save_pv = protocol_version; @@ -153,9 +151,9 @@ struct file_list *create_flist_from_batc for (i = 0; (flags = read_byte(f)) != 0; i++) { if (protocol_version >= 28 && (flags & XMIT_EXTENDED_FLA...
2002 Dec 23
3
rsync 2.5.5 SCO Unixware patch
...2002 @@ -264,7 +264,7 @@ return bytes_read; } -unsigned char read_batch_flags() +unsigned char read_batch_flags(void) { int flags; --- flist.c.orig Mon Dec 23 21:51:31 2002 +++ flist.c Mon Dec 23 21:51:43 2002 @@ -1177,7 +1177,7 @@ /* * allocate a new file list */ -struct file_list *flist_new() +struct file_list *flist_new(void) { struct file_list *flist; --- log.c.orig Mon Dec 23 21:51:47 2002 +++ log.c Mon Dec 23 21:51:54 2002 @@ -183,7 +183,7 @@ #endif } -void log_open() +void log_open(void) { if (logfname && !logfile) { extern int orig_umask; @@ -193,7 +193,7...
2004 Sep 03
1
more filelist --stats
...6.3pre1/flist.c 2004-08-12 14:20:07.000000000 -0400 +++ rsync-2.6.3pre1+tykhe/flist.c 2004-09-03 10:17:31.259895000 -0400 @@ -1056,6 +1056,7 @@ start_filelist_progress("building file list"); start_write = stats.total_written; + stats.flist_buildtime = time(NULL); flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK, "send_file_list"); @@ -1202,6 +1203,9 @@ } } + stats.flist_buildtime = time(NULL) - stats.flist_buildtime; + stats.flist_xfertime = time(NULL); + if (f != -1) { send_file_entry(NULL, f, 0); @@ -1209,6 +1213,8 @@ f...
2004 May 29
1
[patch] Filename conversion
...ame conversion always done on client */ + convert_fname(thisname, lastname, MAXPATHLEN); + clean_fname(thisname); if (sanitize_paths) @@ -1043,6 +1050,9 @@ struct file_list *send_file_list(int f, start_write = stats.total_written; + if (!am_server) + init_fname_convert(); + flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK, "send_file_list"); @@ -1217,6 +1227,9 @@ struct file_list *send_file_list(int f, write_batch_flist_info(flist->count, flist->files); } + if (!am_server) + cleanup_fname_convert(); + if (verbose > 3) output_flist(flist);...
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...uct file_list *send_file_list(int f, int argc, char *argv[]); +struct file_list *recv_file_list(int f); +int file_compare(struct file_struct **f1, struct file_struct **f2); +int flist_find(struct file_list *flist, struct file_struct *f); +void free_file(struct file_struct *file); +struct file_list *flist_new(void); +void flist_free(struct file_list *flist); +char *f_name(struct file_struct *f); +char *f_name_dst(struct file_struct *f); +void show_flist_stats(void); +int readlink_stat(const char *path, STRUCT_STAT * buffer, char *linkbuf); +int link_stat(const char *path, STRUCT_STAT * buffer); +struct...
2003 Feb 16
1
rsync-exclude.patch.
...clude_list("!", &recur_local_exclude_list, 0); + } + closedir(d); } @@ -887,6 +936,8 @@ if (show_filelist_p() && f != -1) start_filelist_progress("building file list"); + recur_local_exclude_list = NULL; + start_write = stats.total_written; flist = flist_new(); diff -ru rsync-2.5.6/options.c rsync-2.5.6J/options.c --- rsync-2.5.6/options.c Mon Jan 27 20:11:57 2003 +++ rsync-2.5.6J/options.c Thu Feb 13 11:13:01 2003 @@ -45,6 +45,7 @@ int preserve_times = 0; int update_only = 0; int cvs_exclude = 0; +const char *rsync_exclude = NULL; int dry_run=0;...
2002 Dec 09
2
Rsync performance increase through buffering
...0 ) return thisRet; + writeBufCnt = 0; + } + } while ( buf && len > 0 ); + return ret; } while (len>0) { diff -bur rsync/flist.c rsync-craig/flist.c --- rsync/flist.c Sat Jul 27 11:01:21 2002 +++ rsync-craig/flist.c Sun Dec 8 16:28:14 2002 @@ -889,7 +889,7 @@ flist = flist_new(); if (f != -1) { - io_start_buffering(f); + io_start_buffering_out(f); } for (i = 0; i < argc; i++) { diff -bur rsync/io.c rsync-craig/io.c --- rsync/io.c Wed Apr 10 19:11:50 2002 +++ rsync-craig/io.c Sun Dec 8 17:54:23 2002 @@ -41,8 +41,8 @@ static int io_multiplexing_out; sta...
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
..._t n; /**< block_length */ + size_t blength; /**< block_length */ + size_t s2length; /**< sum2_length */ struct sum_buf *sums; /**< points to info for each chunk */ }; --- proto.h Sat Mar 29 12:18:02 2003 +++ proto.h Sat Mar 29 12:15:38 2003 @@ -91,6 +91,7 @@ struct file_list *flist_new(void); void flist_free(struct file_list *flist); char *f_name(struct file_struct *f); +void write_sum_head(int f, struct sum_struct *sum); void recv_generator(char *fname, struct file_list *flist, int i, int f_out); void generate_files(int f,struct file_list *flist,char *local_name,int f_recv);...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
This is a patch to add an --rsync-exclude option to rsync-2.5.6cvs. File names in .rsync- (or .rsync+) are excluded (or included) from the file lists associated with the current directory and all of its subdirectories. This has advantages over --cvs-exclude for backing up large file systems since the .cvsignore files only apply to the current directory: unless the .cvsignore restrictions apply
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...st) { + free_exclude_list(&recur_local_exclude_list); + } + closedir(d); } @@ -1022,6 +1078,8 @@ if (show_filelist_p() && f != -1) start_filelist_progress("building file list"); + recur_local_exclude_list = NULL; + start_write = stats.total_written; flist = flist_new(f == -1 ? WITHOUT_HLINK : WITH_HLINK, diff -ru rsync-2.6.1pre-1/options.c rsync-2.6.1pre-1J/options.c --- rsync-2.6.1pre-1/options.c 2004-02-22 09:56:43.000000000 +0100 +++ rsync-2.6.1pre-1J/options.c 2004-04-08 10:11:13.000000000 +0200 @@ -47,6 +47,7 @@ int update_only = 0; int cvs_exclude = 0;...