bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#44631: 28.0.50; Byte compilation fails if destination file is a moun


From: Lars Ingebrigtsen
Subject: bug#44631: 28.0.50; Byte compilation fails if destination file is a mount point
Date: Sun, 13 Dec 2020 13:32:37 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Philipp Stephani <p.stephani2@gmail.com> writes:

> I guess it also depends on what the semantics are that
> byte-compile-file guarantees. If it attempts to guarantee atomicity,
> then only a intra-filesystem rename (or similar alternatives such as
> O_TMPFILE + linkat) are acceptable, and technically, not even the
> current fallback on EXDEV (which makes rename-file nonatomic) is OK.
> If atomic writes are best-effort, then we could always fall back to
> copy-file + delete-file on any file-error.

It's definitely best-effort, so altering byte-compile-file to try 
copy-file + delete-file sounds like the best solution to me.

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]