bug#80060: mv: move files across bind mounts using the rename syscall

Paul Eggert <[email protected]> Tue, 23 Dec 2025 11:09:39 -0800
Newsgroups gmane.comp.gnu.core-utils.bugs
Organization UCLA Computer Science Department
Message-ID <[email protected]>
On 2025-12-23 04:27, Pádraig Brady wrote:
> I don't think it's appropriate for mv to do this expensive/error prone
> path manipulation for each file being copied across devices.
> IMHO this is more appropriate for the kernel,
> which has a more holistic view of the mount space.

Plus, it's not like mv is the only app with this efficiency issue. Why 
should all those apps be modified to work around the inefficiency when 
the kernel can do the job right once and for all?