search for: file_compar

Displaying 9 results from an estimated 9 matches for "file_compar".

Did you mean: file_compare
2003 Dec 30
3
The dangers of static buffers in rsync code
...and sad... One obvious problem path is starting from generator.c:generate_files() function. In there we call in a while loop: recv_generator(local_name?local_name:f_name(file),flist,i,f), which calls hlink.c:check_hard_link(), which calls hlink.c:hlink_compare(), which calls flist.c:file_compare(), which calls flist.c:f_name(). Interested parties might want to follow the code, it is easier and more obvious... Anyway, the end result is that in recv_generator() the first argument (fname) is now clobbered by our search through the hlink_list, and depending on what was the last th...
2006 Jun 02
3
[PATCH] --omit-dir-changes, qsort<>mergesort issues
Hi all, I recently ran into some problems with rsync. My plan is to renew some of our old administration concepts from early 90's, I already replaced rdist with rsync a few years ago. Because of the rdist legacy, the current method requires synchronizing files into 6 different locations, {/alt,/usr/alt}/{hostdep,sysdep,hutdep}, which in turn are prioritized by a tool that just symlinks
2003 Oct 01
1
PATCH: option to ignore case in filenames
...quot;--ignorecase" switch. It is passed from client to server. It's only appropriate when used on a FAT filesystem. John ===== flist.c 1.1 vs edited ===== --- 1.1/rsync/flist.c Thu Feb 13 11:51:39 2003 +++ edited/flist.c Tue Sep 30 18:16:35 2003 @@ -1137,6 +1137,13 @@ **/ int file_compare(struct file_struct **f1, struct file_struct **f2) { + extern int ignore_case; + int (*cf)(const char *, const char *); + if (ignore_case) + cf = strcasecmp; + else + cf = u_strcmp; + if (!(*f1)->basename && !(*f2)->basename...
2003 Jul 24
0
(no subject)
...,90 ---- void send_file_name(int f, struct file_list *flist, char *fname, int recursive, unsigned base_flags); struct file_list *send_file_list(int f, int argc, char *argv[]); + void send_batch_file_list( int f, struct file_list *flist ); 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); diff -E -B -c -r rsync-2.5.6/rsync.h rsync-2.5.6-remotebatch/rsync.h *** rsync-2.5.6/rsync.h Sun Jan 26 20:11:16 2003 --- rsync-2.5.6-remotebatch/rsync.h Wed Jul 23 10:52:41 2003 **...
2004 Mar 10
4
HFS+ resource forks: WIP patch included
...t file_list *flist, char *fname, + int recursive, unsigned base_flags); +void send_file_name(int f, struct file_list *flist, char *fname, + int recursive, unsigned base_flags); +struct 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(stru...
2004 Jan 25
2
scan for first existing hard-link file
...LINK_LAST)) { + hlink_list[file->F_INDEX] = file->F_NEXT; + return; + } write_int(f_out,i); write_sum_head(f_out, NULL); return; --- hlink.c 22 Jan 2004 04:38:18 -0000 1.30 +++ hlink.c 25 Jan 2004 09:22:23 -0000 @@ -38,8 +38,8 @@ static int hlink_compare(struct file_str return file_compare(file1, file2); } -static struct file_struct **hlink_list; -static int hlink_count; +struct file_struct **hlink_list; +int hlink_count; #define LINKED(p1,p2) ((p1)->F_DEV == (p2)->F_DEV \ && (p1)->F_INODE == (p2)->F_INODE) @@ -56,13 +56,14 @@ static void link_idev_d...
2001 Nov 20
2
patch to enable faster mirroring of large filesystems
...:59 2001 @@ -46,6 +46,7 @@ void send_file_name(int f,struct file_list *flist,char *fname, int recursive, unsigned base_flags); struct file_list *send_file_list(int f,int argc,char *argv[]); +struct file_list *send_file_list_fp(int f,FILE *fp); 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);
2003 Jan 14
4
specifying a list of files to transfer
...2003 @@ -82,6 +82,7 @@ void send_file_name(int f, struct file_list *flist, char *fname, int recursive, unsigned base_flags); struct file_list *send_file_list(int f, int argc, char *argv[]); +struct file_list *send_file_list_fp(int f,FILE *fp); 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);
2004 Feb 06
4
memory reduction
...ke_file(char *fname, + struct file_list *flist, int exclude_level); void send_file_name(int f, struct file_list *flist, char *fname, int recursive, unsigned short base_flags); struct 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 **file1, struct file_struct **file2); int flist_find(struct file_list *flist, struct file_struct *f); -void free_file(struct file_struct *file, int free_the_struct); -struct file_list *flist_new(void); +void clear_file(int i, struct file_list *flist); +struct file_list *flist_n...