summaryrefslogtreecommitdiff
path: root/difftool/compare_files_sqfs.c
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-06 16:55:41 +0200
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-08-07 11:24:36 +0200
commit55914564db1ce7a4fc71e9dc34156aa144661d0d (patch)
tree2b981d86df104906c9c9b2bad5434d105a4cff5c /difftool/compare_files_sqfs.c
parentd6149732b67fbedc7ac2d2ba984c07ab466392f1 (diff)
Add flag to sqfsdiff to skip comparing filesystem contents
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'difftool/compare_files_sqfs.c')
-rw-r--r--difftool/compare_files_sqfs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/difftool/compare_files_sqfs.c b/difftool/compare_files_sqfs.c
index d8bef83..76fae7a 100644
--- a/difftool/compare_files_sqfs.c
+++ b/difftool/compare_files_sqfs.c
@@ -17,6 +17,9 @@ int compare_files(file_info_t *a, file_info_t *b, const char *path)
if (a->size != b->size)
return 1;
+ if (compare_flags & COMPARE_NO_CONTENTS)
+ return 0;
+
for (offset = 0; offset < a->size; offset += diff) {
diff = a->size - offset;