From d2a97a7ab492e0d0548708251309e077e6aa8c8b Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Tue, 22 Sep 2020 11:46:36 -0700 Subject: 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. --- rsync.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'rsync.h') 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 -- cgit v1.2.1