Hi!
I mount cephfs using kernel client (3.10.0-229.11.1.el7.x86_64). The effect is the same when doing "echo >>" from another machine and from a machine keeping the file open. The file is opened with open( .., O_WRONLY|O_LARGEFILE|O_APPEND|O_BINARY|O_CREAT) Shell ">>" is implemented as (from strace bash -c "echo '7789' >> /mnt/ceph/test): open("/mnt/ceph/test", O_WRONLY|O_CREAT|O_APPEND, 0666) = 3 The test file had ~500KB size. Each subsequent "echo >>" writes to the start of the test file, first "echo" overwriting the original contents, next "echos" overwriting bytes written by the preceding "echo". Thanks! J. On 01.09.2015 18:15, Gregory Farnum wrote:
|
_______________________________________________ ceph-users mailing list ceph-users@xxxxxxxxxxxxxx http://lists.ceph.com/listinfo.cgi/ceph-users-ceph.com