Displaying 2 results from an estimated 2 matches for "keep_trying".
2004 Feb 17
1
[patch] Make robust_rename() handle EXDEV.
...,
+ full_fname(fnametmp), fname, strerror(errno));
} else {
set_perms(fname,file,NULL,0);
}
patchwork diff backup.c
--- backup.c 2004-02-17 09:58:51.000000000 -0500
+++ backup.c 2004-02-17 10:12:15.000000000 -0500
@@ -131,27 +131,16 @@
static int robust_move(char *src, char *dst)
{
int keep_trying = 4;
- int keep_path_extfs = 0;
int failed;
while (keep_trying) {
- if (keep_path_extfs) {
- failed = copy_file(src, dst, 0755);
- if (!failed)
- do_unlink(src);
- } else
- failed = robust_rename(src, dst);
-
+ failed = robust_rename(src, dst);
if (failed) {
if (verbose >...
2003 Sep 05
1
new option suggestion '--backup-only'
...2 09:30:46.000000000 +0900
+++ rsync-backuponly/backup.c 2003-09-02 15:29:03.000000000 +0900
@@ -25,6 +25,7 @@
extern int backup_dir_len;
extern char *backup_suffix;
extern char *backup_dir;
+extern int backup_only;
extern int am_root;
extern int preserve_devices;
@@ -133,21 +134,26 @@
int keep_trying = 4;
int keep_path_extfs = 0;
int failed;
+ int saveerrno;
while (keep_trying) {
- if (keep_path_extfs) {
+ if (keep_path_extfs || backup_only) {
failed = copy_file(src, dst, 0755);
+ saveerrno = errno;
if (!failed) {
do_unlink(src);
+ saveerrno = errno;
}
} else...