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

i2c: use PathBuf for socket paths #570

Merged
merged 2 commits into from
Dec 5, 2023
Merged

Conversation

epilys
Copy link
Member

@epilys epilys commented Dec 5, 2023

clap can parse a PathBuf directly from the command line arguments, and paths are not always UTF-8. Use PathBuf instead of a String to allow for all valid filesystem paths.

Requirements

Before submitting your PR, please make sure you addressed the following
requirements:

  • All commits in this PR are signed (with git commit -s), and the commit
    message has max 60 characters for the summary and max 75 characters for each
    description line.
  • All added/changed functionality has a corresponding unit/integration
    test.
  • All added/changed public-facing functionality has entries in the "Upcoming
    Release" section of CHANGELOG.md (if no such section exists, please create one).
  • Any newly added unsafe code is properly documented.

@epilys epilys force-pushed the i2c-socket-pathbuf branch 2 times, most recently from ec5426f to d8709e7 Compare December 5, 2023 08:53
@epilys epilys force-pushed the i2c-socket-pathbuf branch 2 times, most recently from 109146d to e2576ec Compare December 5, 2023 09:01
@vireshk vireshk enabled auto-merge (rebase) December 5, 2023 09:04
@epilys epilys force-pushed the i2c-socket-pathbuf branch from e2576ec to 2d0e74a Compare December 5, 2023 10:05
clap can parse a PathBuf directly from the command line arguments, and
paths are not always UTF-8. Use PathBuf instead of a String to allow for
all valid filesystem paths.

Signed-off-by: Manos Pitsidianakis <[email protected]>
Check that parent path component exists and is a directory.

Signed-off-by: Manos Pitsidianakis <[email protected]>
@epilys epilys force-pushed the i2c-socket-pathbuf branch from 6f97128 to 187a39f Compare December 5, 2023 12:02
@vireshk vireshk merged commit c0f67db into rust-vmm:main Dec 5, 2023
2 checks passed
@epilys epilys deleted the i2c-socket-pathbuf branch December 5, 2023 12:11
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.

4 participants