search for: hard_link_check

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

2004 Jun 17
1
[PATCH] make write_batch local
...nt i) { + write_int(f_out, i); + if (!dry_run) write_sum_head(f_out, NULL); + if (write_batch) { + write_batch_csum_info(&i, NULL); + } + } /** * Acts on file number @p i from @p flist, whose name is @p fname. *************** *** 453,460 **** if (preserve_hard_links && hard_link_check(file, HL_SKIP)) return; if (errno == ENOENT) { ! write_int(f_out,i); ! if (!dry_run) write_sum_head(f_out, NULL); } else if (verbose > 1) { rsyserr(FERROR, errno, "recv_generator: failed to open %s", --- 483,489 ---- if (preserve_hard_links &&...
2004 Mar 26
1
2.6.1pre-1 Segmentation fault & other fun
Oops :) -- quote -- $ rsync -aHPv rsync://host/module/single.file . <motd, if any> receiving file list ... 1 file to consider Segmentation fault -- endquote -- The rsync process remains running until explicitly 'kill'ed. At which point, the following is printed: -- quote -- rsync error: received SIGUSR1 or SIGINT (code 20) at rsync.c(225) -- endquote -- -- quote -- $ rsync -aHPv
2004 Sep 02
1
--partiall-dir not behaving like it ought too
Hi, I have awaited the new release inorder to use the -"-partial-dir" option. But after testing it seems that it does not behave like it says on the tin. It will correctly move and rename the interrupted file to the declared directory, but it will not attempt to use it when the client attempts to rsync the file again. I have a Solaris 8 box running as a server (Matthew), and another
2008 Apr 26
1
Bug#477931: rsync: Segfaults syncing the linux kernel archive.
...b) bt > #0 0x0000000000434b84 in hashtable_find (tbl=0x0, key=-1, > allocate_if_missing=0) at hashtable.c:59 > #1 0x0000000000430278 in check_prior (file=0x2ae3c6632e78, gnum=-1, > prev_ndx_p=0x7fffe8617564, flist_p=0x7fffe8617568) at hlink.c:269 > #2 0x0000000000430433 in hard_link_check (file=0x2ae3c6632e78, ndx=799511, > fname=0x7fffe861ba30 "scm/linux/kernel/git/torvalds/linux-2.6.git/objects/pack/pack-447fe96131da71732243925546a8d62bef99bea2.idx", statret=0, > sxp=0x7fffe861b870, itemizing=1, code=FLOG) at hlink.c:298 > #3 0x00000000004112d6 in recv_...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 4).
...hashfiles); +struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr); +struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files); +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file); void init_hard_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, -...
2004 Feb 17
0
[patch] Add `--link-by-hash' option (rev 3).
...hashfiles); +struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr); +struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files); +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file); void init_hard_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, -...
2004 Feb 23
0
[patch] Add `--link-by-hash' option (rev 5).
...hashfiles); +struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr); +struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files); +int link_by_hash(char *fnametmp,char *fname,struct file_struct *file); void init_hard_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, -...
2004 Feb 16
1
[patch] Add `--link-by-hash' option (rev 2).
...hfile_struct *hashfiles); +struct hashfile_struct *find_hashfiles(char *hashname, int64 size, long *fnbr); +struct hashfile_struct *compare_hashfiles(int fd,struct hashfile_struct *files); +void link_by_hash(char *fname,struct file_struct *file); void init_hard_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, -...
2008 Feb 15
4
Revised flags patch
...F_FFLAGS(file) = st.st_flags; +#endif if (uid_ndx) F_OWNER(file) = st.st_uid; if (gid_ndx) diff -brpu rsync-3.0.0pre9/hlink.c rsync-3.0.0pre9-flags/hlink.c --- rsync-3.0.0pre9/hlink.c Thu Feb 7 01:06:33 2008 +++ rsync-3.0.0pre9-flags/hlink.c Fri Feb 15 19:35:16 2008 @@ -389,6 +389,12 @@ int hard_link_check(struct file_struct * int hard_link_one(struct file_struct *file, const char *fname, const char *oldname, int terse) { +#if SUPPORT_FLAGS + STRUCT_STAT st2; + + link_stat(oldname, &st2, 0); + make_mutable(oldname, st2.st_mode, st2.st_flags); +#endif if (do_link(oldname, fname) < 0)...