GNU bug report logs - #34713
Files vanishing when moving to different FS

Previous Next

Package: coreutils;

Reported by: Christoph Michelbach <michelbach94 <at> gmail.com>

Date: Sat, 2 Mar 2019 22:12:02 UTC

Severity: normal

Tags: notabug

Done: Bob Proulx <bob <at> proulx.com>

Bug is archived. No further changes may be made.

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Christoph Michelbach <michelbach94 <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: Files vanishing when moving to different FS
Date: Sat, 02 Mar 2019 23:10:51 +0100
To reproduce this bug, you need two different file systems. Adapt the
paths to fit your system.

Set the experimental file structure up like this:

mkdir exp
cd exp
mkdir a
cd a
touch a{1..100000}
cd ..
mkdir b
cd b
touch b{1..10000}
mkdir /t/ae # /t has to be on a different file system

Then have two terminals open in the exp directory created above. In
one, execute this command:

mv a /t/ae

In the other, execute this one while the one in the first terminal
still is running (hence the large number of files so you have time to
do this):

mv b/* a

You will end up with 100 000 files in /t/ae. The 10 000 files beginning
with the letter b will be gone.

-- 
Christoph Michelbach <michelbach94 <at> gmail.com>





This bug report was last modified 6 years and 136 days ago.

Previous Next


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