diff options
Diffstat (limited to 'difftool/sqfsdiff.c')
-rw-r--r-- | difftool/sqfsdiff.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/difftool/sqfsdiff.c b/difftool/sqfsdiff.c index d23a724..96a8f31 100644 --- a/difftool/sqfsdiff.c +++ b/difftool/sqfsdiff.c @@ -11,11 +11,12 @@ static struct option long_opts[] = { { "no-permissions", no_argument, NULL, 'P' }, { "no-contents", no_argument, NULL, 'C' }, { "timestamps", no_argument, NULL, 'T' }, + { "inode-num", no_argument, NULL, 'I' }, { "help", no_argument, NULL, 'h' }, { "version", no_argument, NULL, 'V' }, }; -static const char *short_opts = "OPCThV"; +static const char *short_opts = "OPCTIhV"; static const char *usagestr = "Usage: sqfsdiff [OPTIONS...] <first> <second>\n" @@ -40,6 +41,7 @@ static const char *usagestr = " --no-permissions, -P Do not compare permission bits.\n" "\n" " --timestamps, -T Compare file timestamps.\n" +" --inode-num, -I Compare inode numbers of all files.\n" "\n" " --help, -h Print help text and exit.\n" " --version, -V Print version information and exit.\n" @@ -73,6 +75,9 @@ static void process_options(int argc, char **argv) case 'T': compare_flags |= COMPARE_TIMESTAMP; break; + case 'I': + compare_flags |= COMPARE_INODE_NUM; + break; case 'h': fputs(usagestr, stdout); exit(EXIT_SUCCESS); |