Displaying 2 results from an estimated 2 matches for "cleanup_fd_w".
2012 Apr 17
1
Bug#624826: rsync: Bad interaction between -u and --partial
...to 0 when a file transfer
is interrupted, which was suggested by the bug reporter and sounds
sensible to me.
Any possible hidden gotcha's?
Paul
--- a/cleanup.c 2012-04-15 14:14:02.913993934 +0200
+++ b/cleanup.c 2012-04-15 14:13:58.834033097 +0200
@@ -157,8 +157,9 @@
flush_write_file(cleanup_fd_w);
close(cleanup_fd_w);
}
+ cleanup_file->modtime = 0; /* solves problem with --partial --update */
finish_transfer(cleanup_new_fname, fname, NULL, NULL,
- cleanup_file, 0, !partial_dir);
+ cleanup_file, 1, !partial_dir);
}
/* FALLTHROUGH */
On Sun 01 May 2011, Sa...
2006 May 18
1
Partial files left on SIGINT
Hi,
As the man page says, the --partial flag is to "keep partially
transferred files". I'm assuming if I don't have partial flag any
partially transferred files should be deleted. However this is not what
I'm seeing.
Example:
(Using a big file so that rsync times a while to run. This gives me time
to hit CTRL-C for the SIGINT).
> mkdir example
> dd if=/dev/zero