Skip to content

Handle unknown fd types#6

Merged
propertone merged 1 commit intomainfrom
pr/propertone/handle_unknown_fd_types/OV14
Sep 12, 2025
Merged

Handle unknown fd types#6
propertone merged 1 commit intomainfrom
pr/propertone/handle_unknown_fd_types/OV14

Conversation

@propertone
Copy link
Member

procfs FDTarget::Other type doesn't handle non-inode fds like onload:[udp:2:2024],
In eminence/procfs#356 they added a new FDTarget::Unknown type to address this.
In procfd, I'm treating both as Other since they are represented as
strings, and the differentiation between Other and Unknown would be
confusing.

procfs FDTarget::Other type doesn't handle non-inode fds like onload:[udp:2:2024],
In eminence/procfs#356 they added a new FDTarget::Unknown type to address this.
In procfd, I'm treating both as Other since they are represented as
strings, and the differentiation between Other and Unknown would be
confusing.
@propertone propertone requested a review from mkomitee September 12, 2025 04:33
@propertone propertone self-assigned this Sep 12, 2025
@propertone propertone requested a review from Copilot September 12, 2025 04:34
Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR updates the handling of unknown file descriptor types by upgrading the procfs dependency and adapting to new FDTarget types. The change improves representation of non-inode file descriptors that were previously displayed as generic "other" entries.

  • Updates procfs dependency from 0.17.0 to 0.18.0
  • Handles the new FDTarget::Unknown type introduced in procfs
  • Improves display format for Other and Unknown fd types to show actual data instead of generic "other"

Reviewed Changes

Copilot reviewed 2 out of 3 changed files in this pull request and generated 1 comment.

File Description
Cargo.toml Updates procfs dependency to version 0.18.0
src/main.rs Adds handling for new Unknown FDTarget type and improves display formatting for Other/Unknown types

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Copy link

@mkomitee mkomitee left a comment

Choose a reason for hiding this comment

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

I think it may be time to consider creating some (more) tests.

@propertone propertone merged commit e2706ad into main Sep 12, 2025
@propertone propertone deleted the pr/propertone/handle_unknown_fd_types/OV14 branch September 12, 2025 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants