1SQFSDIFF(1) User Commands SQFSDIFF(1)
2
3
4
6 sqfsdiff - compare two squashfs images by contents and metadata
7
9 sqfsdiff [OPTIONS...] --old <first> --new <second>
10
12 Compare two squashfs images. In contrast to doing a direct diff of the
13 images, this actually parses the filesystems and generates a more mean‐
14 ingful difference report.
15
16 If only contents are compared, any differences in packed file layout,
17 ordering, compression, inode meta data and so on is ignored and the two
18 images are considered equal if each directory contains the same en‐
19 tries, symlink with the same paths have the same targets, device nodes
20 the same device number and files the same size and contents.
21
22 A report of any difference is printed to stdout. The exit status is
23 similar that of diff(1): 0 means equal, 1 means different, 2 means
24 problem.
25
26 Possible options:
27
28 --old, -a <first>
29 Specify the first filesystem image or source directory, relativ
30 to which the changes are evaluated.
31
32 --new, -b <second>
33 Specify the second filesystem image to source directory to com‐
34 pare to the first one.
35
36 --no-contents, -C
37 Do not compare file contents.
38
39 --no-owner, -O
40 Do not compare file owners.
41
42 --no-permissions, -P
43 Do not compare permission bits.
44
45 --timestamps, -T
46 Compare file timestamps.
47
48 --inode-num, -I
49 Compare inode numbers of all files.
50
51 --super, -S
52 Also compare meta data in super blocks.
53
54 --extract, -e <path>
55 Extract files that exist in both images but have different con‐
56 tents to the specified directory. Contents of the first image
57 end up in a sub directory named old and the contents of the sec‐
58 ond image in a sub directory named new.
59
60 --help, -h
61 Print help text and exit.
62
63 --version, -V
64 Print version information and exit.
65
67 The exit status is similar that of diff(1): 0 means equal, 1 means dif‐
68 ferent, 2 means problem.
69
71 rdsquashfs(1), sqfs2tar(1)
72
74 Written by David Oberhollenzer.
75
77 Copyright © 2019 David Oberhollenzer et al License GPLv3+: GNU GPL ver‐
78 sion 3 or later <https://gnu.org/licenses/gpl.html>.
79 This is free software: you are free to change and redistribute it.
80 There is NO WARRANTY, to the extent permitted by law.
81
82
83
84sqfsdiff August 2019 SQFSDIFF(1)