question about FileStore read()/write()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi everyone,?

I am reading the FileStore source code and confused with the read() and write() process.

If journal is enable, write() will be acknowledged after the changes are committed to the journal device but before they are applied to the file system. However read() is always satisfied from the OSD file on the file system, so if a read arrives during this interval. Will the read get the stale data? Does this behavior break the read-after-write posix semantics? Shouldn't the read go to the journal for the latest data?

Please point me out if my understanding is incorrect, thanks very much.

Best regards,
James Pan



[Index of Archives]     [Information on CEPH]     [Linux Filesystem Development]     [Ceph Development]     [Ceph Large]     [Ceph Dev]     [Linux USB Development]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [xfs]


  Powered by Linux