cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Bertrand Delacretaz" <>
Subject Re: Cocoon staging repository & Cocoon root POM
Date Sun, 03 Dec 2006 14:16:34 GMT
On 12/3/06, Reinhard Poetz <> wrote:

> ...Some time ago somebody mentioned that the mv command is atomic. Is this
> information correct?...

on a Linux or unixish system, mv uses the rename() system call which
is atomic (i.e. intermediate states are not visible), so

  mv somefile newfile
  mv somedir newdir

are atomic *if* source and target are on the same file system, but

  mv file1 file2 file3 newdir

is not atomic as a whole, at some point file1 will be in newdir
without file2 being there.


View raw message