public inbox for goredo-devel@lists.cypherpunks.ru
Atom feed
From: goredo <spacefrogg-goredo@spacefrogg•net>
To: goredo-devel@lists.cypherpunks.ru
Subject: Suggestion to revert touching files when the hash matches (problem with hardlinks)
Date: Tue, 1 Nov 2022 07:42:11 +0100 (GMT+01:00)	[thread overview]
Message-ID: <eee2108f-a0b1-45be-8dfe-1cffc5eba5e0@spacefrogg.net> (raw)
In-Reply-To: <d42b693e-e09a-05aa-37e7-a177a528a841@jnboehm.com>

Hardlinks are a bad idea due to their "automatic updates". You no longer get the guarantee that your output is only changed by redo.

Are you sure this did not also happen before 1.23? Because I know this error. After the first run of b.do, you've already established the hardlink between a and b. Linking again to $3 doesn't change the fact that you also changed b directly (via the common link to a).

So, your problem has nothing to do with 1.23, even if the error behaviour has changed.

As an alternative, you could look into using 'cp --reflink' on modern file systems.

Kind regards,
–Michael

  reply	other threads:[~2022-11-01  7:09 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-10-31 21:37 Suggestion to revert touching files when the hash matches (problem with hardlinks) Jan Niklas Böhm
2022-11-01  6:42 ` goredo [this message]
2022-11-01  7:50   ` Jan Niklas Böhm
2022-11-01  8:21     ` goredo
2022-11-01  9:02       ` Jan Niklas Böhm
2022-11-01 11:49         ` Spacefrogg
2022-11-01 13:14           ` Jan Niklas Böhm
2022-11-02 13:57             ` Sergey Matveev
2022-11-02 22:42               ` Jan Niklas Böhm
2022-11-03  8:55                 ` Sergey Matveev