bug-coreutils
[Top][All Lists]
Advanced

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

bug in /bin/mv !?


From: michael
Subject: bug in /bin/mv !?
Date: Wed, 28 Feb 2007 18:27:12 +0100

Hello ,

i think there is a severe bug in the linux "mv" command:

address@hidden:/y/x# mv -v tsm /tsm
`tsm' -> `/tsm/tsm'
`tsm/db' -> `/tsm/tsm/db'
`tsm/db/dbvol01.dsm' -> `/tsm/tsm/db/dbvol01.dsm'
`tsm/db/dbvol02.dsm' -> `/tsm/tsm/db/dbvol02.dsm'
`tsm/db/logvol01.dsm' -> `/tsm/tsm/db/logvol01.dsm'
`tsm/db/logvol02.dsm' -> `/tsm/tsm/db/logvol02.dsm'
`tsm/db/logvol03.dsm' -> `/tsm/tsm/db/logvol03.dsm'
mv: writing `/tsm/tsm/db/logvol03.dsm': No space left on device
`tsm/db/logvol04.dsm' -> `/tsm/tsm/db/logvol04.dsm'
mv: writing `/tsm/tsm/db/logvol04.dsm': No space left on device
address@hidden:/y/x# l
total 0
address@hidden:/y/x# l
total 0
address@hidden:/y/x# pwd
/y/x
address@hidden:/y/x# cd /tsm/tsm/db
address@hidden:/tsm/tsm/db# l
total 9047116
drwx------ 2 root root        118 Feb 28 12:58 .
drwx------ 3 root root         15 Feb 28 12:27 ..
-rw------- 1 root root 4296015872 Feb 28 10:53 dbvol01.dsm
-rw------- 1 root root 4296015872 Feb 28 10:53 dbvol02.dsm
-rw------- 1 root root  269484032 Feb 28 10:56 logvol01.dsm
-rw------- 1 root root  269484032 Feb 28 10:53 logvol02.dsm
-rw------- 1 root root  133238784 Feb 28 15:57 logvol03.dsm
-rw------- 1 root root          0 Feb 28 15:57 logvol04.dsm

Obviously the command /bin/mv did not notice the error given by the
filesystem and proceeded with unlinking the files in the SOURCE !

I consider this as a bug. Could you please check ?

My system is:

Linux roadrunner 2.6.15-28-686 #1 SMP PREEMPT Thu Feb 1 16:14:07 UTC 2007 i686 
GNU/Linux
Ubuntu 6.06LTS

Target and Source Filesystems are both of type xfs. Is this relevant ?


-- 
Best regards,
 michael                          mailto:address@hidden





reply via email to

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