bug-coreutils
[Top][All Lists]
Advanced

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

bug#25930: optimize mv for multiple bind mounts


From: Assaf Gordon
Subject: bug#25930: optimize mv for multiple bind mounts
Date: Sun, 28 Oct 2018 20:50:17 -0600
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1

close 25930
stop

(triaging old bugs)

On 2017-03-04 1:01 a.m., Sven Joachim wrote:
On 2017-03-02 13:16 -0800, L A Walsh wrote:

Sven Joachim wrote:
,----
|   EXDEV  oldpath and newpath are not on the same mounted filesystem.
|          (Linux  permits  a  filesystem  to  be  mounted at multiple
|          points, but rename() does not work across  different  mount
|          points, even if the same filesystem is mounted on both.)
----
    That's unfortunate, as Windows recognizes moves between
the same device and does a rename vs. a copy (i.e. it doesn't
matter if the mounted object from the mount is different, as
long as the rename happens between the same devices).

Linux used to do the same in kernel 2.2, but changed the behavior when
bind mounts were introduced in 2.4.0.  In other words, it's deliberate.


Given the above (kernel limitation), I'm closing this bug.
Discussion can continue by replying to this thread.

-assaf






reply via email to

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