From 55914564db1ce7a4fc71e9dc34156aa144661d0d Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Tue, 6 Aug 2019 16:55:41 +0200 Subject: Add flag to sqfsdiff to skip comparing filesystem contents Signed-off-by: David Oberhollenzer --- difftool/compare_files_sqfs.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'difftool/compare_files_sqfs.c') 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; -- cgit v1.2.3