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

mds: add long snap name flag in LeaseStat for fscrypt #45208

Closed
wants to merge 1 commit into from

Conversation

lxbsz
Copy link
Member

@lxbsz lxbsz commented Mar 1, 2022

For the long snapshot names, which are from the parent CInodes,
the format will be "${ENCRYPTED-NAME}${PARENT-INO}". In kclient
side we need to base64 decode it to human readable format of
"${DENCRYPTED-NAME}${PARENT-INO}" if the encrypt key exists. So
we need to know whether the current snapshot name is a long snap
name.

Signed-off-by: Xiubo Li xiubli@redhat.com

Checklist

  • Tracker (select at least one)
    • References tracker ticket
    • Very recent bug; references commit where it was introduced
    • New feature (ticket optional)
    • Doc update (no ticket needed)
    • Code cleanup (no ticket needed)
  • Component impact
    • Affects Dashboard, opened tracker ticket
    • Affects Orchestrator, opened tracker ticket
    • No impact that needs to be tracked
  • Documentation (select at least one)
    • Updates relevant documentation
    • No doc update is appropriate
  • Tests (select at least one)
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

@lxbsz lxbsz requested review from vshankar, jtlayton and a team March 1, 2022 11:42
@github-actions github-actions bot added the cephfs Ceph File System label Mar 1, 2022
Copy link
Contributor

@ajarr ajarr left a comment

Choose a reason for hiding this comment

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

Did you miss adding changes to the struct LeaseStat in messages/MClientReply.h?

src/mds/Locker.cc Outdated Show resolved Hide resolved
src/mds/Server.cc Show resolved Hide resolved
@lxbsz
Copy link
Member Author

lxbsz commented Mar 2, 2022

jenkins retest this please

Copy link
Contributor

@ajarr ajarr left a comment

Choose a reason for hiding this comment

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

LGTM.

also couple of questions.

src/messages/MClientReply.h Outdated Show resolved Hide resolved
For the long snapshot names, which are from the parent CInodes,
the format will be "_${ENCRYPTED-NAME}_${PARENT-INO}". In kclient
side we need to base64 decode it to human readable format of
"_${DENCRYPTED-NAME}_${PARENT-INO}" if the encrypt key exists. So
we need to know whether the current snapshot name is a long snap
name.

Signed-off-by: Xiubo Li <xiubli@redhat.com>
@ljflores
Copy link
Contributor

ljflores commented Mar 5, 2022

jenkins test make check

@lxbsz
Copy link
Member Author

lxbsz commented Mar 9, 2022

Will close it since the snapshot names can not start with an underscore ('_'), as these names are reserved for internal usage. Please see #45312

@lxbsz lxbsz closed this Mar 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cephfs Ceph File System
Projects
None yet
3 participants