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

Andres Pavez apavez.zavala at gmail.com
Wed Jul 12 19:14:31 CEST 2017


--
Andrés Pavez

On Wed, Jul 12, 2017 at 3:02 AM, Daniel Shahaf <danielsh at apache.org> wrote:
> 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.
>

Hi Daniel,
Thanks for your comment, but the final propose is generate a
reproducible custom live cd with the same hash, and this values are
different every time that you mount and copy in the ext4 file system.

Best regards,

> 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