summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayne@opencoder.net>2020-09-22 11:46:36 -0700
committerWayne Davison <wayne@opencoder.net>2020-09-22 12:48:02 -0700
commitd2a97a7ab492e0d0548708251309e077e6aa8c8b (patch)
treecc0072b19dfa2c363da5f9cfa70b43d019f74aae /rsync.h
parent15bc7ded398147ee50232b73c804f10aafa2fdda (diff)
downloadrsync-d2a97a7ab492e0d0548708251309e077e6aa8c8b.tar.gz
Various file comparison improvements
- Rename unchanged_file() to quick_check_ok(). - Enhance quick_check_ok() to work with non-regular files. - Add a get_file_type() function to the generator. - Use the new functions in the generator code to make the logic simpler. - Fix a bug where the `--alt-dest` functions were not checking if a special file fully matched the non-permission mode bits before deciding if we have found an alt-dest match. - Enhance the `--info=skip --ignore-existing` output to include extra info on if the existing file differs in type or passes the standard quick-check logic. - Add `--info=skip2` that authorizes rsync to perform a slow checksum "quick check" when ignoring existing files. This provides the uptodate and differs info even if we need to checksum a file to get it.
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 345a68a6..68dfba51 100644
--- a/rsync.h
+++ b/rsync.h
@@ -277,6 +277,10 @@ enum msgcode {
MSG_NO_SEND=102,/* sender failed to open a file we wanted */
};
+enum filetype {
+ FT_UNSUPPORTED, FT_REG, FT_DIR, FT_SYMLINK, FT_SPECIAL, FT_DEVICE
+};
+
#define NDX_DONE -1
#define NDX_FLIST_EOF -2
#define NDX_DEL_STATS -3