Skip to content

doc: update the capabilities doc for cephfs - #43722

Merged
vshankar merged 1 commit into
ceph:masterfrom
xiubli:caps_doc
Nov 23, 2021
Merged

vshankar merged 1 commit into
ceph:masterfrom
xiubli:caps_doc

Conversation

@xiubli

@xiubli xiubli commented Oct 29, 2021

Copy link
Copy Markdown
Member

Add more detail about the caps and explain more for the caps in
filelock.

Signed-off-by: Xiubo Li [email protected]

Checklist

  • References tracker ticket
  • Updates documentation if necessary
  • Includes tests for new functionality or reproducer for bug

Show available Jenkins commands
  • jenkins retest this please
  • jenkins test classic perf
  • jenkins test crimson perf
  • jenkins test signed
  • jenkins test make check
  • jenkins test make check arm64
  • jenkins test submodules
  • jenkins test dashboard
  • jenkins test dashboard cephadm
  • jenkins test api
  • jenkins test docs
  • jenkins render docs
  • jenkins test ceph-volume all
  • jenkins test ceph-volume tox

@github-actions github-actions Bot added cephfs Ceph File System documentation labels Oct 29, 2021
@xiubli
xiubli requested review from a team, batrick, jtlayton and vshankar October 29, 2021 03:49
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

... otherwise looks good.

@jtlayton jtlayton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Some initial comments. I'll go through the rest in more detail tomorrow.

Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
@xiubli
xiubli force-pushed the caps_doc branch 2 times, most recently from 97287f5 to 5cf9df6 Compare November 8, 2021 13:59
@xiubli
xiubli requested review from jtlayton and vshankar November 8, 2021 14:14

@jtlayton jtlayton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Just some spelling and grammatical cleanups. Also, question about one paragraph that seems out of place.

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/finally/directly/
s/And all the client could have the/All other clients can be granted/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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?

@xiubli xiubli Nov 15, 2021 •

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

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.

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

"capabilities won't be granted to other clients."

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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...".

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Get it. Done. Thanks :-)

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

s/will be can't have from/won't be granted to/

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

Comment thread doc/cephfs/capabilities.rst Outdated

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

spelling : example

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

Done.

@vshankar vshankar left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

minor grammatical changes, otherwise LGTM.

Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Comment thread doc/cephfs/capabilities.rst Resolved
Add more detail about the caps and explain more for the caps in
filelock.

Signed-off-by: Xiubo Li <[email protected]>
@vshankar

Copy link
Copy Markdown
Contributor

LGTM. @jtlayton @batrick - any other comments?

@jtlayton jtlayton left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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.

@vshankar

Copy link
Copy Markdown
Contributor

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!

@vshankar
vshankar merged commit c152264 into ceph:master Nov 23, 2021
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

Development

Successfully merging this pull request may close these issues.

3 participants