search for: ignore_tim

Displaying 16 results from an estimated 16 matches for "ignore_tim".

Did you mean: ignore_times
2005 Jul 31
1
I think I found a bug...
I am looking at rsync 2.6.6 When I try to rsync a directory using --link-dest it never creates hardlinks. After crashing my way through the code here is what I found: generator.c: function 'unchanged_file' if (ignore_times) return 0; return cmp_modtime(st->st_mtime, file->modtime) == 0; shouldn't these lines be: if (ignore_times) return 1; return cmp_modtime(st->st_mtime, file->modtime) >= 0; Or do I not understand something... Nathan Bullock Visit my website at...
2016 Jan 20
2
[PATCH] Consider nanoseconds when quick-checking for unchanged files
I wrote on Fri, 02 Jan 2015 16:02:27 +0100: > --- a/generator.c 2014-06-14 01:05:08.000000000 +0200 > +++ b/generator.c 2015-01-02 15:50:30.000000000 +0100 > @@ -588,7 +588,14 @@ > if (ignore_times) > return 0; > - return cmp_time(st->st_mtime, file->modtime) == 0; > + return cmp_time(st->st_mtime, file->modtime) == 0 > +#ifdef ST_MTIME_NSEC > + ? st->st_mtime == file->modtime > + && NSEC_BU...
2003 Nov 17
0
[PATCH] --source-filter && --dest-filter for rsync 2.5.6
...ed files miEro diff -ur rsync-2.5.6/generator.c rsync-2.5.6-filtered/generator.c --- rsync-2.5.6/generator.c 2002-08-29 16:44:55.000000000 +0200 +++ rsync-2.5.6-filtered/generator.c 2003-11-16 13:57:54.000000000 +0100 @@ -35,6 +35,7 @@ extern int block_size; extern int csum_length; extern int ignore_times; +extern int times_only; extern int size_only; extern int io_timeout; extern int remote_version; @@ -48,8 +49,10 @@ static int skip_file(char *fname, struct file_struct *file, STRUCT_STAT *st) { - if (st->st_size != file->length) { - return 0; + if (! times_only) { + if (st-&...
2005 Apr 25
2
How about a --min-size option, next to --max-size
There's a rather old bug report in Debian's bug tracking system (see http://bugs.debian.org/27126) about wanting to be able to specify the maximum file size, as well as the minimum file size. Here's the text: Sometimes, it's useful to specify a file size range one is interested in. For example, I'd like to keep an up-to-date mirror of Debian, but I currently
2002 Mar 06
0
rsync hangs in read_int (generator.c line 498)
...ture, and they work fine. The third, however, has a fairly deep structure and many more files than the other two, and rsync'ing this directory causes a hang on the client side. Firing up gdb, I get: (gdb) list 486 phase++; 487 csum_length = SUM_LENGTH; 488 ignore_times=1; 489 490 if (verbose > 2) 491 rprintf(FINFO,"generate_files phase=%d\n",phase); 492 493 write_int(f,-1); 494 495 if (remote_version >= 13) { (gdb) n generate_files phase=1 493 write_int(f,-1); (gdb) n 495...
2004 Oct 05
0
new option implemented: --delete-mdays
...d "options.c" and "receiver.c" from version 2.6.3. Best regards, Marko Riedel *** options.c Tue Oct 5 15:46:00 2004 --- /tmp/rsync-2.6.3/options.c Thu Sep 23 19:39:05 2004 *************** *** 52,62 **** int cvs_exclude = 0; int dry_run = 0; int local_server = 0; int ignore_times = 0; int delete_mode = 0; - int delete_mdays = -1; int delete_excluded = 0; int one_file_system = 0; int protocol_version = PROTOCOL_VERSION; int sparse_files = 0; int do_compression = 0; --- 52,61 ---- *************** *** 263,273 **** rprintf(F," -e, --rsh=COMMAND...
2015 Sep 14
3
[Bug 11521] New: rsync does not use high-resolution timestamps to determine file differences
...Please let me know if I can be helpful in testing it further or making it more robust. diff --git a/generator.c b/generator.c index 3a4504f..2f64f5d 100644 --- a/generator.c +++ b/generator.c @@ -588,7 +588,11 @@ int unchanged_file(char *fn, struct file_struct *file, STRUCT_STAT *st) if (ignore_times) return 0; - return cmp_time(st->st_mtime, file->modtime) == 0; + return cmp_time(st->st_mtime, file->modtime) == 0 +#ifdef ST_MTIME_NSEC + && st->ST_MTIME_NSEC == F_MOD_NSEC(file) +#endif + ; } -- You are receivin...
2024 Mar 18
0
[PATCH] add option to skip files based on age/mtime
...example, a file might've been modified after generating the exclude file, so rsync would still transfer it even though that wasn't what was wanted. diff --git a/generator.c b/generator.c index 110db28f..22f0973f 100644 --- a/generator.c +++ b/generator.c @@ -70,6 +70,8 @@ extern int ignore_times; extern int size_only; extern OFF_T max_size; extern OFF_T min_size; +extern int max_age; +extern int min_age; extern int io_error; extern int flist_eof; extern int allowed_lull; @@ -1706,6 +1708,23 @@ static void recv_generator(char *fname, struct file_struct *file, int ndx, got...
2003 Jan 14
3
.rsync-/.rsync+ patch and --link-dest example
...s/options.c rsync-2.5.6cvsJ/options.c --- rsync-2.5.6cvs/options.c Tue Jan 14 09:35:25 2003 +++ rsync-2.5.6cvsJ/options.c Tue Jan 14 09:35:40 2003 @@ -45,6 +45,7 @@ int preserve_times = 0; int update_only = 0; int cvs_exclude = 0; +int rsync_exclude = 0; int dry_run=0; int local_server=0; int ignore_times=0; @@ -237,6 +238,7 @@ rprintf(F," -e, --rsh=COMMAND specify the remote shell\n"); rprintf(F," --rsync-path=PATH specify path to rsync on the remote machine\n"); rprintf(F," -C, --cvs-exclude auto ignore files in the same way CVS doe...
2014 Dec 25
8
[PATCH] Consider nanoseconds when quick-checking for unchanged files
On systems using nanoseconds differences should be taken into consideration. --- a/generator.c 2014-06-14 01:05:08.000000000 +0200 +++ b/generator.c 2014-12-25 11:19:54.000000000 +0100 @@ -588,7 +588,13 @@ if (ignore_times) return 0; - return cmp_time(st->st_mtime, file->modtime) == 0; + return cmp_time(st->st_mtime, file->modtime) == 0 +#ifdef ST_MTIME_NSEC + ? NSEC_BUMP(file) ? (uint32)st->ST_MTIME_NSEC == F_MOD_NSEC(file) + : 1 + : 0 +#endif + ; }
2003 Feb 16
1
rsync-exclude.patch.
...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; int local_server=0; int ignore_times=0; @@ -84,7 +85,6 @@ int modify_window=0; int blocking_io=-1; - /** Network address family. **/ #ifdef INET6 int default_af_hint = 0; /* Any protocol */ @@ -233,6 +233,7 @@ rprintf(F," -e, --rsh=COMMAND specify the remote shell\n"); rprintf(F," --rsync-pa...
2003 Mar 30
1
[RFC][patch] dynamic rolling block and sum sizes II
...quot;,block_size); args[ac++] = bsize; } --- generator.c Sat Mar 29 12:24:49 2003 +++ generator.c Sat Mar 29 16:21:55 2003 @@ -32,7 +32,6 @@ extern int preserve_hard_links; extern int update_only; extern int opt_ignore_existing; -extern int block_size; extern int csum_length; extern int ignore_times; extern int size_only; @@ -100,24 +99,9 @@ } -/* use a larger block size for really big files */ -static int adapt_block_size(struct file_struct *file, int bsize) -{ - int ret; - - if (bsize != BLOCK_SIZE) return bsize; - - ret = file->length / (10000); /* rough heuristic */ - ret = ret...
2010 Jun 15
3
about rsyncing of block devices
Hiya, I can see it's a regular subject on this list. I, like others wanted to use rsync to synchronise two block devices (as it happens one lvm volume and one nbd device served by qemu-img on a remote host from a qcow2 disk image so that I can keep the old versions) As I couldn't find any report of it being done successfully, I'm just sharing my findings as it might benefit others.
2004 Apr 09
3
include/exclude bug in rsync 2.6.0/2.6.1pre1
...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; int dry_run = 0; +const char *rsync_exclude = NULL; int local_server = 0; int ignore_times = 0; int delete_mode = 0; @@ -267,6 +268,7 @@ rprintf(F," -P equivalent to --partial --progress\n"); rprintf(F," -z, --compress compress file data\n"); rprintf(F," -C, --cvs-exclude auto ignore files in the same wa...
2003 Mar 23
1
[RFC] dynamic checksum size
...MAXPATHLEN #define MAXPATHLEN 1024 --- generator.c Sat Mar 22 09:47:43 2003 +++ generator.c.varsumlen Sat Mar 22 10:41:12 2003 @@ -32,7 +32,6 @@ extern int preserve_hard_links; extern int update_only; extern int opt_ignore_existing; -extern int block_size; extern int csum_length; extern int ignore_times; extern int size_only; @@ -93,20 +92,6 @@ } -/* use a larger block size for really big files */ -static int adapt_block_size(struct file_struct *file, int bsize) -{ - int ret; - - if (bsize != BLOCK_SIZE) return bsize; - - ret = file->length / (10000); /* rough heuristic */ - ret = ret &...
2007 Sep 22
0
rsync build on IA64 using icc
...#1419: external declaration in primary source file extern int make_backups; ^ generator.c(61): remark #1419: external declaration in primary source file extern int csum_length; ^ generator.c(62): remark #1419: external declaration in primary source file extern int ignore_times; ^ generator.c(63): remark #1419: external declaration in primary source file extern int size_only; ^ generator.c(64): remark #1419: external declaration in primary source file extern OFF_T max_size; ^ generator.c(65): remark #1419: external declara...