aboutsummaryrefslogtreecommitdiffstats
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2009-01-03 12:00:02 -0800
committerWayne Davison <wayned@samba.org>2009-01-03 12:02:47 -0800
commit21cddef2b460098f5289b9cdbd592bf8f0f9e759 (patch)
treee19d41350ae9753ac69ac0cb86fa3cc3042be8fd /rsync.h
parentb3bf9b9df95137a3a43248be9599d919b04877af (diff)
downloadandroid_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.tar.gz
android_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.tar.bz2
android_external_rsync-21cddef2b460098f5289b9cdbd592bf8f0f9e759.zip
Improved the backup code:
- Backups do not interfere with an atomic update (when possible). - Backing up a file will remove a directory that is in the way and visa versa. - Unify the backup-dir and non-backup-dir code in backup.c. - Improved the backup tests a little bit.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 57bae837..088f90e7 100644
--- a/rsync.h
+++ b/rsync.h
@@ -249,6 +249,7 @@ enum msgcode {
#define DEL_FOR_SYMLINK (1<<5) /* making room for a replacement symlink */
#define DEL_FOR_DEVICE (1<<6) /* making room for a replacement device */
#define DEL_FOR_SPECIAL (1<<7) /* making room for a replacement special */
+#define DEL_FOR_BACKUP (1<<8) /* the delete is for a backup operation */
#define DEL_MAKE_ROOM (DEL_FOR_FILE|DEL_FOR_DIR|DEL_FOR_SYMLINK|DEL_FOR_DEVICE|DEL_FOR_SPECIAL)