When creating a squashfs filesystem using the folder structure below I expect to be able to unsquashfs the filesystem and get the same folder structure back.
root/
a/
large.bin
b/
...
However, everything which would be written after the large.bin binary, won't be written. When trying to unpack the squashfs (using unsquashfs), an inode error is thrown.
get_metadata: failed to read block
FATAL ERROR: read_inode: failed to read inode 4784488:1512
Everything after the binary cannot be unsquashed. However, when trying to execute the binary, it is working as expected, therefore the squashing of the large file itself is successful.
The example is based on the filepath.Walk example, therefore a/ is walked before b/.
FYI, the file is around 10 mb.
When creating a squashfs filesystem using the folder structure below I expect to be able to unsquashfs the filesystem and get the same folder structure back.
However, everything which would be written after the large.bin binary, won't be written. When trying to unpack the squashfs (using
unsquashfs), an inode error is thrown.Everything after the binary cannot be unsquashed. However, when trying to execute the binary, it is working as expected, therefore the squashing of the large file itself is successful.
The example is based on the filepath.Walk example, therefore
a/is walked beforeb/.FYI, the file is around 10 mb.