-
-
Notifications
You must be signed in to change notification settings - Fork 17
Add --dev flag to stay on the same filesystem #349
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
|
|
@@ -49,6 +49,8 @@ where | |||||||
| pub min_ratio: Fraction, | ||||||||
| /// Preserve order of entries. | ||||||||
| pub no_sort: bool, | ||||||||
| /// Device ID of the root directory. When `Some`, entries on different devices are skipped. | ||||||||
|
||||||||
| /// Device ID of the root directory. When `Some`, entries on different devices are skipped. | |
| /// Device ID of the root directory. On Unix, when `Some`, entries on different devices are | |
| /// skipped. On non-Unix platforms this field is ignored and has no effect. |
| Original file line number | Diff line number | Diff line change | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -33,6 +33,7 @@ use std::{ | |||||||||||
| /// size_getter: GetApparentSize, | ||||||||||||
| /// reporter: &ErrorOnlyReporter::new(ErrorReport::SILENT), | ||||||||||||
| /// max_depth: 10, | ||||||||||||
| /// root_dev: None, | ||||||||||||
| /// }; | ||||||||||||
| /// let data_tree: DataTree<OsStringDisplay, Bytes> = builder.into(); | ||||||||||||
| /// ``` | ||||||||||||
|
|
@@ -54,6 +55,8 @@ where | |||||||||||
| pub reporter: &'a Report, | ||||||||||||
| /// Deepest level of descendant display in the graph. The sizes beyond the max depth still count toward total. | ||||||||||||
| pub max_depth: u64, | ||||||||||||
| /// Device ID of the root directory. When `Some`, entries on different devices are skipped. | ||||||||||||
|
||||||||||||
| /// Device ID of the root directory. When `Some`, entries on different devices are skipped. | |
| /// Device ID of the root directory. | |
| /// | |
| /// On Unix, when this is `Some`, entries on different devices are skipped. | |
| /// On non-Unix platforms this field is currently ignored and has no effect. |
Copilot
AI
Mar 11, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This --dev path check returns an empty Info (size=0, no children), which stops traversal but still keeps the mountpoint entry in the resulting DataTree with a zero size. If the intended behavior is to truly skip the entry (omit it from output entirely), the filtering likely needs to happen at the parent read_dir stage (or TreeBuilder/Info needs an explicit “skip node” mechanism). If keeping the node is intended, consider adjusting the comment to say “do not traverse into” rather than “skip entries”.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
New behavior is introduced here (
--devvalidation and theDevArgConflicterror), but there doesn’t appear to be a corresponding CLI test ensuring the error triggers (and that--devis wired through therun!matrix). Adding a small test case (e.g.,pdu --dev path1 path2expectingDevArgConflict) would help prevent regressions when the macro arm list changes.