Hi,

On Tue, 08 Apr 2025 at 12:20, Vagrant Cascadian <vagr...@debian.org> wrote:

>>>But on the other hand it's not responsibility of Guix to actually make
>>>sure the files are written to the disk itself. It just makes sure what
>>>currently is on the filesystem is fine.

[...]

> I know in Debian dpkg makes fsync calls afer many operations...
>
> If guix does not already call fsync or related system calls ... maybe it
> should? If it already does, maybe there are more places where it should
> call fsync? There will certainly be a performance hit, as a tradeoff for
> increased reliability...  it would not fundamentally solve the problem,
> but it might significantly reduce the risks.

Well, I do not know if it is relevant but it rings this bell [1].
Somehow, it’s hard to determine when or where Guix should call fsync.

Cheers,
simon

1: [bug#58035] sync-before-registering is false, possibly the cause of empty 
files in the store
zimoun <zimon.touto...@gmail.com>
Mon, 17 Oct 2022 20:03:28 +0200
id:878rlel43z....@gmail.com
https://issues.guix.gnu.org/58035
https://issues.guix.gnu.org/msgid/878rlel43z....@gmail.com
https://yhetil.org/guix/878rlel43z....@gmail.com

Reply via email to