client: correctly unwrap getcwd dentries#62228
Merged
Conversation
542a2aa to
7009eef
Compare
Member
Author
|
jenkins test make check arm64 |
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/70407. |
Member
Author
|
jenkins test make check |
Member
Author
|
jenkins test windows |
7009eef to
98beac3
Compare
Member
Author
|
Previous code caused: /teuthology/pdonnell-2025-03-12_03:15:00-fs-wip-pdonnell-testing-20250312.000233-debug-distro-default-smithi/8182736/teuthology.log |
afdc259 to
8b7e190
Compare
Member
Author
|
This PR is under test in https://tracker.ceph.com/issues/70426. |
Member
Author
|
jenkins test windows |
vshankar
reviewed
Mar 13, 2025
vshankar
reviewed
Mar 13, 2025
vshankar
reviewed
Mar 13, 2025
Signed-off-by: Patrick Donnelly <[email protected]>
Signed-off-by: Patrick Donnelly <[email protected]>
Unfortunately, it's not easy to refactor this test into a shared method without setting up an explicit test class which has been avoided up to this point. So I'm going to just copy the code. Sorry. Signed-off-by: Patrick Donnelly <[email protected]>
In particular: there's no reason to do a getcwd after chdir. Signed-off-by: Patrick Donnelly <[email protected]>
This was missed in the path_walk refactor. readdir is not the only way to "get" dentry names. Signed-off-by: Patrick Donnelly <[email protected]>
libcephfs semantics require that the old path to the cwd be returned when getcwd is encounters an unlinked directory in the current working directory. Signed-off-by: Patrick Donnelly <[email protected]>
8b7e190 to
c7c5089
Compare
vshankar
approved these changes
Mar 14, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Mostly this is a fix for unwrapping dentry names for getcwd. I've also included a second fix for mkdir and recursive path walks needed for userspace encryption (see #61137).
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job Definition