Hi!

open( ... O_APPEND) works fine in a single system. If many processes write to 
the same file, their output will never overwrite each other.

On NFS overwriting is possible, as appending is only emulated - each write is 
preceded by a seek to the current file size and race condition may occur.

How it is in cephfs?

I have a file F opened with  O_APPEND|O_WRONLY by some process. In a console I 
type

    $ echo "asd" >> F

Effectively, this is opening of file F by another process with O_APPEND flag .

The string "asd" is written to the beginning of file F, overwriting the 
starting bytes in the file. Is it a bug or a feature? If a feature, how it is 
described?

It is ceph Hammer and kernel 3.10.0-229.11.1.el7.x86_64

Thanks!

J.
 
_______________________________________________
ceph-users mailing list
ceph-users@lists.ceph.com
http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com

Reply via email to