From: Gert Doering (gert@greenie.gold.sub.org)
Date: 02/26/93


From: gert@greenie.gold.sub.org (Gert Doering)
Subject: Re: Bug in 'msdos' file system?
Date: Fri, 26 Feb 1993 15:11:49 GMT

danubius@halcyon.com (Joseph R. Pannon) writes:

>>mv /home/frampton/myfile.txt /dos/c:
>>
>Without knowing the internals too well, my sense is telling me that it's
>a BAD IDEA to move files between two file systems, especially between as
>different ones as Linux and DOS has. In cases like that the files
>probably should be copied, not moved because I imagine mv leaves the
>actual data in place and only relinks directory pointers to that data.
>So, in your case, the myfile.txt data was probably staying on your Linux
>partition while a directory pointer from Linux was attempted to be moved
>to the DOS partition. That sounds like a bad news to me!

Rubbish.

mv cannot link anything to a different filesystem, so the file is copied
and deleted.

>There is a way to do this right even in such situations by
>performing really a cp and rm operation in place of inter-filesystem mv,
>but that is probably not done in this case.

That *is* done internally by all "mv" implementations I know about.

gert

-- 
Gert Doering | SubNet  : gert@greenie.gold.sub.org      | mailbox / uucp:
Munich / FRG | InterNet: gdoering@physik.tu-muenchen.de | call (089)3243328
(089)3243228 | FidoNet : gert.doering@2:246/55.4        | login bbs / nuucp