Re: [9fans] renaming to an existing file

2009-08-04 Thread Russ Cox
> How can I achieve the same result with 9P? You can't. (Redefine 9P.) Russ

[9fans] renaming to an existing file

2009-08-04 Thread Roman V Shaposhnik
I've just realized that in 9P the wstat would refuse to rename an entry if a target name already exists. So how can I atomically replace one file with another one, so that during the operation clients opening it would not fail? In POSIX rename gives you such an atomicity: ---