Dear Phillip Lougher,
I am making squashfs files and have encountered a problem: every time I create the squash file, its cksum changes.
For example, if you run ./mksquashfs foo foo.squash; cksum foo.squash. Then wait a few seconds and run this command again, you get a different cksum result.
My understanding is that when creating the squash file, the program puts the current date info inside the squash file. Therefore, I made a patch that has an additional feature: -no-date flag.
So if you run ./mksquashfs foo foo.squash –no-date ; cksum foo.squash, you get the same cksum result independent of creation time.
Attached is my patch, I only added/changed some lines in mksquashfs.c
I got the source code here https://sourceforge.net/projects/squashfs/ version 4.3
If you think this feature is useful, please let me know.
I look forward to hearing from you.
Thank you for your consideration.
Hello again,
Attached is my updated patch. I don't get why the previous patch misses some parts of the change.
My apology for any inconvenience.