Repository navigation
doc: update the capabilities doc for cephfs - #43722
Conversation
vshankar
left a comment
There was a problem hiding this comment.
... otherwise looks good.
jtlayton
left a comment
There was a problem hiding this comment.
Some initial comments. I'll go through the rest in more detail tomorrow.
97287f5 to
5cf9df6
Compare
jtlayton
left a comment
There was a problem hiding this comment.
Just some spelling and grammatical cleanups. Also, question about one paragraph that seems out of place.
There was a problem hiding this comment.
s/finally/directly/
s/And all the client could have the/All other clients can be granted/
There was a problem hiding this comment.
I'm not sure I understand how the above relates to Fr caps. Also:
"If there is any client wants to write the file at the same time"
How does the MDS know that the client wants to write? I assume by requesting Fw caps?
There was a problem hiding this comment.
I'm not sure I understand how the above relates to Fr caps. Also:
The above will be the same in **Fw** section below. And I just copied it to there.
"If there is any client wants to write the file at the same time"
This is possibly a bit confusing, it should be If there are clients want to read and write the file at the same time.
How does the MDS know that the client wants to write? I assume by requesting Fw caps?
Yeah, right. You know here the write/read will be interpreted to Fw/Fr caps in clients.
The MDS will record all the clients' wanted caps, such as when clients do open(..., O_RDWR), they will request Fw caps via wanted. And the MDS will calculate and transfer to the correct filelock state by depending on the wanted caps.
There was a problem hiding this comment.
"capabilities won't be granted to other clients."
There was a problem hiding this comment.
In English, "active voice" is preferred. Rather than saying "If there is another client that wants to read or write...", it's better to make the client the "actor" in the sentence and say something like "If another client wants to read or write...".
There was a problem hiding this comment.
s/will be can't have from/won't be granted to/
vshankar
left a comment
There was a problem hiding this comment.
minor grammatical changes, otherwise LGTM.
Add more detail about the caps and explain more for the caps in filelock. Signed-off-by: Xiubo Li <[email protected]>
jtlayton
left a comment
There was a problem hiding this comment.
Looks fine. Some of the phrasing and grammar is still a bit awkward, but it gets the point across. Maybe we can clean it up a bit post-merge too.
agreed! |
Add more detail about the caps and explain more for the caps in
filelock.
Signed-off-by: Xiubo Li [email protected]
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume tox