Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc/cephfs/posix: update #6922

Merged
merged 1 commit into from Dec 14, 2015
Merged

doc/cephfs/posix: update #6922

merged 1 commit into from Dec 14, 2015

Conversation

liewegas
Copy link
Member

Signed-off-by: Sage Weil sage@redhat.com

@liewegas liewegas added documentation cephfs Ceph File System labels Dec 14, 2015
However, there are a few places where CephFS diverges from strict
POSIX semantics for various reasons:

- In shared simultaneous writer situations, a write that crosses
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we actually enable this case these days? I thought that we only had two clients writing simultaneously with the old O_LAZY flag, otherwise we can only have one writing at a time.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you have read+write or write+write we flip to LOCK_MIX mode, which gives out RD and WR caps but makes all IO synchronous (on RDCACHE or WRBUFFER). All reads and writes are effectively serialized at the OSD.

CEPH_IOC_LAZY asks the mds to give the client RDCACHE and WRBUFFER despite the sharing, which means the app is responsible for invalidating its cache or flushing changes at the appropriate points...

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK, got it.

@ukernel
Copy link
Contributor

ukernel commented Dec 14, 2015

seems good

Signed-off-by: Sage Weil <sage@redhat.com>
liewegas added a commit that referenced this pull request Dec 14, 2015
@liewegas liewegas merged commit 03f719c into ceph:master Dec 14, 2015
@liewegas liewegas deleted the wip-cephfs-posix branch December 14, 2015 18:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System documentation
Projects
None yet
5 participants