El Domingo, 22 de Junio de 2008 19:57, Konstantinos Arvanitis escribió:
> I'm afraid it just works (tm) only when the file is moved into the
> same file system, thus the i-node number remains the same). However
> since the file may be moved across file systems (depending on the
> directories set in the configuration), /bin/mv may actually perform a
> copy, and then we WILL be asking for trouble.
>
> On the same function: If we know that the files will always be on the
> same filesystem (and thus need never be copied), using rename(2) avoid
> a whole fork/exec.

You are right ... I've tested it and if I move an open file from one 
filesystem to another, mv does acts as cp, leaving me with 2 files, one 
trunked and another complete.
I've never seen that before .. :-\

-- 
Saludos.

Raúl Alexis Betancor Santana
Dimensión Virtual S.L.
_______________________________________________
Callweaver-dev mailing list
[email protected]
http://lists.callweaver.org/mailman/listinfo/callweaver-dev

Reply via email to