GNU bug report logs - #15328
Bug or dubious feature?

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: coreutils; Reported by: Linda Walsh <coreutils@HIDDEN>; Keywords: notabug; Done: Assaf Gordon <assafgordon@HIDDEN>; Maintainer for coreutils is bug-coreutils@HIDDEN.

Message received at 15328-done <at> debbugs.gnu.org:


Received: (at 15328-done) by debbugs.gnu.org; 11 Jan 2019 09:20:13 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri Jan 11 04:20:13 2019
Received: from localhost ([127.0.0.1]:54548 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1ghsz6-0003jG-SZ
	for submit <at> debbugs.gnu.org; Fri, 11 Jan 2019 04:20:13 -0500
Received: from mail-pl1-f174.google.com ([209.85.214.174]:42121)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <assafgordon@HIDDEN>)
 id 1ghsz2-0003ir-QL; Fri, 11 Jan 2019 04:20:09 -0500
Received: by mail-pl1-f174.google.com with SMTP id y1so6512190plp.9;
 Fri, 11 Jan 2019 01:20:08 -0800 (PST)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025;
 h=subject:to:references:from:message-id:date:user-agent:mime-version
 :in-reply-to:content-language:content-transfer-encoding;
 bh=5bwA5HBqIaCL5esJV/hcBYUR/PTs1R7JoUiWugKAi04=;
 b=WFV8M2ShtJV2N2X/EQgdPmHPLzCqRuNJRr0bn/EafZtravBmpE5m2u3p5FPDpCUeQy
 UUy2zqes8vKo74W8Jat8BbE7fpc0TrPF22h1CQqMFnijB3K3QYuSYDuT+7wwiJ1/pYo9
 Y5eeXu4cNVR++X+PO4jZBBmDVJn+jVumYgiRIeXDYx2VxblAdqf8PP2WJMJH5UjuBbUs
 LUuFO+yBgo6ImYWfXejN6ApZYbXr2jDkxaL/tDpaw7zp1mUyjwjkWIkrGhcuHTuvFzFM
 +f7dMNN83SkCoQJaTrA3aJF5zo7aK9K4Y2iwKA+95WFav3TDRmW5shbqLhj0HLjCBhZy
 xNUQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20161025;
 h=x-gm-message-state:subject:to:references:from:message-id:date
 :user-agent:mime-version:in-reply-to:content-language
 :content-transfer-encoding;
 bh=5bwA5HBqIaCL5esJV/hcBYUR/PTs1R7JoUiWugKAi04=;
 b=hnZhS7GnYvJSQKywv1nDZ0/SHu5sZhFh+NS1Oa+kRhPJ7PGkRlDzN0wx22vv11Q8pB
 GbiY/wf/d+ZgR3323B9r1AJFADY4dZ1MsxoHk6UIbZ3HH4dmOmXqvhWMQbhssoCQtmpl
 rINeygs5fOOzI78CBZCImv/kvuKSYfGwSUaF6h5zJ0q3uDeVSWNjk6b2E6sNHwwE49tF
 dnhr3JHuRwz7/xfIPss/4CsBIzNAU8NHKGe3evP0V1NKFKqCqCFzasJT03x8D56OgiOP
 Sy5FdyvGbYMT6gvguJJKQ4OjD1qrBrz6SMrDpY461ys6AcXIG6hpW3p/410BNUFAdWhi
 KULg==
X-Gm-Message-State: AJcUukd+bK/M3K7SnAm0X05buUnnZFLeL/aAPyOQAFvHqluqmGz3OIdF
 yoUS3Y+97GR38A61v/X8yYRJvklF
X-Google-Smtp-Source: ALg8bN6yR05+4O5HjO8YvdT9PF45nrfu93BkgH1zBRntbImzknpr8hmHnmkVTD52RvIaMD9l19gIBA==
X-Received: by 2002:a17:902:7581:: with SMTP id
 j1mr14010436pll.308.1547198402497; 
 Fri, 11 Jan 2019 01:20:02 -0800 (PST)
Received: from tomato.housegordon.com (moose.housegordon.com. [184.68.105.38])
 by smtp.googlemail.com with ESMTPSA id
 w88sm139582568pfk.11.2019.01.11.01.20.00
 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128);
 Fri, 11 Jan 2019 01:20:01 -0800 (PST)
Subject: Re: bug#15328: Bug or dubious feature?
To: Linda Walsh <coreutils@HIDDEN>
References: <522F85A5.4080101@HIDDEN> <522F88A1.2080602@HIDDEN>
From: Assaf Gordon <assafgordon@HIDDEN>
Message-ID: <fa3daea3-c256-2f97-5069-7ee1a3bba972@HIDDEN>
Date: Fri, 11 Jan 2019 02:20:00 -0700
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101
 Thunderbird/60.4.0
MIME-Version: 1.0
In-Reply-To: <522F88A1.2080602@HIDDEN>
Content-Type: text/plain; charset=utf-8; format=flowed
Content-Language: en-US
Content-Transfer-Encoding: 7bit
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 15328-done
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

tags 15328 notabug
close 15328
stop

Hello,

On 2013-09-10 3:01 p.m., Linda Walsh wrote:
> Whatever the problem is, it's not in 'mv'...

Given the above, and no further comments in 5 years,
I'm closing this item.

regards,
  - assaf






Information forwarded to bug-coreutils@HIDDEN:
bug#15328; Package coreutils. Full text available.
bug closed, send any further explanations to 15328 <at> debbugs.gnu.org and Linda Walsh <coreutils@HIDDEN> Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.
Added tag(s) notabug. Request was from Assaf Gordon <assafgordon@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 15328 <at> debbugs.gnu.org:


Received: (at 15328) by debbugs.gnu.org; 11 Sep 2013 23:00:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Sep 11 19:00:17 2013
Received: from localhost ([127.0.0.1]:56863 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VJtOP-0000FC-Uy
	for submit <at> debbugs.gnu.org; Wed, 11 Sep 2013 19:00:15 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:50998)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <coreutils@HIDDEN>) id 1VJtOM-0000EI-Mj
 for 15328 <at> debbugs.gnu.org; Wed, 11 Sep 2013 19:00:11 -0400
Received: from [192.168.4.12] (Athenae [192.168.4.12])
 by Ishtar.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 r8BN04si003058
 for <15328 <at> debbugs.gnu.org>; Wed, 11 Sep 2013 16:00:07 -0700
Message-ID: <5230F5F4.1000302@HIDDEN>
Date: Wed, 11 Sep 2013 16:00:04 -0700
From: Linda Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: 15328 <at> debbugs.gnu.org
Subject: Re: bug#15328: Bug or dubious feature? (coreutils consistency prob)
References: <522F85A5.4080101@HIDDEN> <522F88A1.2080602@HIDDEN>
In-Reply-To: <522F88A1.2080602@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.8 (/)
X-Debbugs-Envelope-To: 15328
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.8 (/)



Linda Walsh wrote:
> 
> Whatever the problem is, it's not in 'mv'...
----
	But there is a consistency problem in core utils.

Even though /usr/share/fonts and /home/share/fonts are the same directory
with /home/share being mounted with "rbind" on /usr/share,

"mv" cannot move files between the two dirs without copying them.  That
"might" be ok, except that "du -sh /usr/share/fonts /home/share/fonts/"
sees them as 1 directory.

Why does "mv" fail to rename (vs. physical copy) when "du" sees them
as the same directory -- (and only lists the first one if trying to du both):

   Ishtar:/> du -sh /home/share/fonts/. /usr/share/fonts/.
   8.8G    /home/share/fonts/.
   Ishtar:/> du -sh /usr/share/fonts/. /home/share/fonts/.
   8.8G    /usr/share/fonts/.

---

Also, is it intentional to leave out args from the listing of "du" --
I know it doesn't double-count the space (by default), but I would have
thought to see a 2nd entry w/0 space:

   Ishtar:/> du -sh /home/share/fonts/. /usr/share/fonts/.
   8.8G    /home/share/fonts/.
   0       /usr/share/fonts/.





Information forwarded to bug-coreutils@HIDDEN:
bug#15328; Package coreutils. Full text available.

Message received at 15328 <at> debbugs.gnu.org:


Received: (at 15328) by debbugs.gnu.org; 10 Sep 2013 21:01:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 10 17:01:31 2013
Received: from localhost ([127.0.0.1]:53389 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VJV3x-0006K3-ME
	for submit <at> debbugs.gnu.org; Tue, 10 Sep 2013 17:01:31 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:44753)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <coreutils@HIDDEN>) id 1VJV3v-0006Js-60
 for 15328 <at> debbugs.gnu.org; Tue, 10 Sep 2013 17:01:27 -0400
Received: from [192.168.4.12] (Athenae [192.168.4.12])
 by Ishtar.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 r8AL1L5q046808
 for <15328 <at> debbugs.gnu.org>; Tue, 10 Sep 2013 14:01:24 -0700
Message-ID: <522F88A1.2080602@HIDDEN>
Date: Tue, 10 Sep 2013 14:01:21 -0700
From: Linda Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: 15328 <at> debbugs.gnu.org
Subject: Re: bug#15328: Bug or dubious feature?
References: <522F85A5.4080101@HIDDEN>
In-Reply-To: <522F85A5.4080101@HIDDEN>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 15328
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.7 (/)


Whatever the problem is, it's not in 'mv'...

I tried to run my dedup'r, and got this:
   /usr/share/fonts/sys> time ndedup /home/law/fonts/sys2/ .
   Paths: 34474, uniq nodes: 20192, total_size: 12.8GB (12.9GB allocated).
   ERROR: Invalid cross-device link doing link(./desktop.ini, 
/home/law/fonts/sys2//desktop.ini): \
     (Invalid cross-device link) at /home/law/bin/ndedup line 1107
   10.40sec 10.11usr 0.28sys (99.98% cpu)
----

But this works (same dir's):

   /usr/share/fonts/sys> cd /home/share/fonts/sys
   /home/share/fonts/sys> time ndedup /home/law/fonts/sys2/ .
   Paths: 34474, uniq nodes: 20191, total_size: 12.8GB (12.9GB allocated).
    Nodes(done/uniq); Space(read / alloc'd)
     35011/12758    25.5GB / 7.2GB space  ;cursz:  37.8MB; newlnks: 7433(1730 
cmps_skip, 11046 cmps_full)
   5.7GB in 7434 duplicate files found found.
   49.75sec 35.34usr 12.90sys (96.98% cpu)

Anyone know if this is a documented kernel "feature"?
Seems odd.





Information forwarded to bug-coreutils@HIDDEN:
bug#15328; Package coreutils. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 10 Sep 2013 20:49:17 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Sep 10 16:49:17 2013
Received: from localhost ([127.0.0.1]:53368 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.80)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1VJUs8-0005yi-Rt
	for submit <at> debbugs.gnu.org; Tue, 10 Sep 2013 16:49:17 -0400
Received: from eggs.gnu.org ([208.118.235.92]:50299)
 by debbugs.gnu.org with esmtp (Exim 4.80)
 (envelope-from <coreutils@HIDDEN>) id 1VJUs4-0005yQ-KE
 for submit <at> debbugs.gnu.org; Tue, 10 Sep 2013 16:49:15 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1VJUrq-0007Jt-Qc
 for submit <at> debbugs.gnu.org; Tue, 10 Sep 2013 16:49:07 -0400
X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on eggs.gnu.org
X-Spam-Level: 
X-Spam-Status: No, score=0.8 required=5.0 tests=BAYES_50 autolearn=disabled
 version=3.3.2
Received: from lists.gnu.org ([2001:4830:134:3::11]:48885)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1VJUrq-0007Jp-Ne
 for submit <at> debbugs.gnu.org; Tue, 10 Sep 2013 16:48:58 -0400
Received: from eggs.gnu.org ([2001:4830:134:3::10]:51950)
 by lists.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1VJUrk-0001NT-Or
 for bug-coreutils@HIDDEN; Tue, 10 Sep 2013 16:48:58 -0400
Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1VJUrd-0007HC-9b
 for bug-coreutils@HIDDEN; Tue, 10 Sep 2013 16:48:52 -0400
Received: from ishtar.tlinx.org ([173.164.175.65]:49321)
 by eggs.gnu.org with esmtp (Exim 4.71)
 (envelope-from <coreutils@HIDDEN>) id 1VJUrc-0007GO-LK
 for bug-coreutils@HIDDEN; Tue, 10 Sep 2013 16:48:45 -0400
Received: from [192.168.4.12] (Athenae [192.168.4.12])
 by Ishtar.tlinx.org (8.14.7/8.14.4/SuSE Linux 0.8) with ESMTP id
 r8AKmbCD045468
 for <bug-coreutils@HIDDEN>; Tue, 10 Sep 2013 13:48:40 -0700
Message-ID: <522F85A5.4080101@HIDDEN>
Date: Tue, 10 Sep 2013 13:48:37 -0700
From: Linda Walsh <coreutils@HIDDEN>
User-Agent: Thunderbird
MIME-Version: 1.0
To: bug-coreutils@HIDDEN
Subject: Bug or dubious feature?
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x (no
 timestamps) [generic]
X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address
 (bad octet value).
X-Received-From: 2001:4830:134:3::11
X-Spam-Score: -5.0 (-----)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.15
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <http://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <http://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <http://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -5.0 (-----)

I was trying to move a directory with the 'mv' command.

Instead of renaming the files it copied and deleted them.

The source and destination were the same disk which a stat of the source
and destination would confirm.

The "oddity", is that I was moving between
/usr/share/fonts -> /home/law/fonts where I use "rbind" to mount
part of home in /usr/share:


(fstab)
/home/share /usr/share  none  rbind

stat shows:


> stat -c %D /usr/share /home/share
fe03
fe03


So... why didn't it rename if the device numbers are the same?

I'm sure it wouldn't try a rename if I moved from /usr->/usr/share as
share is a different partition/device number, so it seems 'mv' does check
device id's to verify sameness upon move.  Then why not in moving
what was "effectively", /home/share/fonts/<dirname> => /home/law/fonts/. ?

It was only 12G of files, so it was done in ~ 5-10 minutes, but I was
expecting a few seconds...??

Coreutils 8.21/linux 3.9.11 / xfs filesystem.





Acknowledgement sent to Linda Walsh <coreutils@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-coreutils@HIDDEN. Full text available.
Report forwarded to bug-coreutils@HIDDEN:
bug#15328; Package coreutils. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Fri, 11 Jan 2019 09:30:03 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.