[rb-general] How to modify mount-time and write when you write in a file system

Daniel Shahaf danielsh at apache.org
Wed Jul 12 12:02:28 CEST 2017


Andres Pavez wrote on Tue, 11 Jul 2017 16:36 -0700:
> Problem: during the creation/reproduction of the custom live cd, when
> i use "mount' to mount the filesystem to copy my sw inside of the
> rootfs (after unsquashfs) i noted usign tune2fs every time i mont the
> file system the values "last mount time", "last write time" and
> "Lifetime writes" changes and i don't know how to fix it.
> 
> With tune2fs i can only  fix the "Mount Count", but no the mount time
> and writes.
> 

Perhaps, instead of backdating the metadata, teach diffoscope to parse
the metadata, so diffoscope's output would pretty-print the metadata
diff?  If it's just those three values that differ, presumably that wouldn't
make the output much harder to audit for your downstream users.

Cheers,

Daniel

> Other: To build the live cd I am using mksquashfs with
> "-mkfs-fixed-time" and "-content-fixed-time" options and xorriso with
> "modification-date" option and it is works. but the problem is the
> File System.


More information about the rb-general mailing list