unofficial mirror of help-guix@gnu.org 
 help / color / mirror / Atom feed
From: Tobias Geerinckx-Rice <me@tobias.gr>
To: Martin Michel <martin@famic.de>
Cc: help-guix@gnu.org
Subject: Re: Modification date of /gnu/store files is 1970-01-01
Date: Wed, 21 Oct 2020 20:05:03 +0200	[thread overview]
Message-ID: <87wnzj8ng0.fsf@nckx> (raw)
In-Reply-To: <20201021155354.r5iinhpzoxk2yqev@remote.famic.de>

[-- Attachment #1: Type: text/plain, Size: 694 bytes --]

Martin,

Martin Michel 写道:
> So far so good, but I could not figure out what is wrong with 
> the file system entries of /gnu/store.  All entries there have a 
> timestamp of UNIX epoch 0.

Well spotted!  This is intentional.  The Guix daemon[0] changes 
all timestamps of all files added to the store to a known value. 
Same for other metadata like ownership and some permission bits.

If it did not, certain software could (and does) behave 
differently between two different machines with otherwise 
identical stores.

Kind regards,

T G-R

[0]: Inherited from Nix and still in C++: 
http://git.savannah.gnu.org/cgit/guix.git/tree/nix/libstore/local-store.hh#n293

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 247 bytes --]

  parent reply	other threads:[~2020-10-21 18:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-10-21 15:53 Modification date of /gnu/store files is 1970-01-01 Martin Michel
2020-10-21 17:56 ` John Soo
2020-10-21 17:56   ` John Soo
2020-10-21 17:58 ` Wiktor Żelazny
2020-10-21 18:05 ` Tobias Geerinckx-Rice [this message]
2020-10-21 19:58   ` Martin Michel
2020-10-21 20:23     ` John Soo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://guix.gnu.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87wnzj8ng0.fsf@nckx \
    --to=me@tobias.gr \
    --cc=help-guix@gnu.org \
    --cc=martin@famic.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).