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

ls: Add support to recursively print dentries of subdirectories #112

Merged
merged 1 commit into from
Oct 18, 2024

Conversation

srivathsa729
Copy link
Member

Currently, ls module prints the dentries of a given directory. Add support to print the dentries of its subdirectories recursively up to a specified depth.

Signed-off-by: Srivathsa Dara [email protected]

@oracle-contributor-agreement oracle-contributor-agreement bot added the OCA Verified All contributors have signed the Oracle Contributor Agreement. label Oct 8, 2024
@srivathsa729 srivathsa729 force-pushed the dcache-depth-feature branch 2 times, most recently from d98e9d1 to e50989c Compare October 8, 2024 05:58
drgn_tools/dentry.py Show resolved Hide resolved
drgn_tools/dentry.py Outdated Show resolved Hide resolved
drgn_tools/dentry.py Outdated Show resolved Hide resolved
drgn_tools/dentry.py Outdated Show resolved Hide resolved
drgn_tools/dentry.py Outdated Show resolved Hide resolved
drgn_tools/dentry.py Show resolved Hide resolved
drgn_tools/dentry.py Show resolved Hide resolved
Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

I'm sorry for not making these requests on the previous review, the PR looks great but I have two small nitpicks. Can you also take a look at the "Developer Workflow For drgn-tools" (check slack) and file the necessary Orabugs for this change too? I don't think this necessarily needs to go back to 1.x stable branch, but if you think it's worth it, that will be a second Orabug and a pull request against stable/v1 as the document states.

drgn_tools/dentry.py Outdated Show resolved Hide resolved
drgn_tools/dentry.py Outdated Show resolved Hide resolved
@srivathsa729 srivathsa729 force-pushed the dcache-depth-feature branch 2 times, most recently from 3b472b5 to 1847d8f Compare October 18, 2024 10:48
Currently, ls module prints the dentries of a given directory.
Add support to print the dentries of its subdirectories recursively
up to a specified depth.

Orabug: 37188670

Signed-off-by: Srivathsa Dara <[email protected]>
Copy link
Member

@brenns10 brenns10 left a comment

Choose a reason for hiding this comment

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

Great, thanks for bearing with me! This is actually really fun to play around with on my laptop, corelens /proc/kcore -M ls -d 2 -c ~ gives interesting output to learn about how negative dentries get created on the desktop and where.

@brenns10 brenns10 merged commit d1fa0a8 into oracle-samples:main Oct 18, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
OCA Verified All contributors have signed the Oracle Contributor Agreement.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants