Re: [ceph-users] question about FileStore read()/write()

2014-07-23 Thread Gregory Farnum
Keep in mind that this coordination is largely happening above the FileStore layer, so you are indeed not seeing any code within the FileStore to support it. :) But operations within the OSD are ordered on a per-PG basis, and while in-progress writes can overlap, a read will be blocked until the wr

Re: [ceph-users] question about FileStore read()/write()

2014-07-22 Thread Haomai Wang
Read will get the newest content. If the read arrives during the write interval, it will wait for the write applied. On Wed, Jul 23, 2014 at 10:22 AM, James Pan wrote: > Hi everyone, > > I am reading the FileStore source code and confused with the read() and > write() process. > > If journal is