Skip to content

Introduce ipmi.OpenPath and make blobs.BlobStats public.#2621

Merged
hugelgupf merged 2 commits into
u-root:mainfrom
chrisfenner:main
Feb 22, 2023
Merged

Introduce ipmi.OpenPath and make blobs.BlobStats public.#2621
hugelgupf merged 2 commits into
u-root:mainfrom
chrisfenner:main

Conversation

@chrisfenner
Copy link
Copy Markdown
Member

This change makes two minor feature updates to the ipmi and blobs packages:

  1. Introduces OpenPath to open the ipmi device by full path instead of just device number.

  2. Makes BlobStats's members public, so that BlobStat and BlobSessionStat can be used.

In testing this change, I noticed that BlobStat/BlobSessionStat had a bug. Fixed that as well. (You can't pass a struct with a slice member to binary.Read.)

@chrisfenner chrisfenner marked this pull request as ready for review February 17, 2023 21:26
@codecov
Copy link
Copy Markdown

codecov Bot commented Feb 17, 2023

Codecov Report

Base: 75.03% // Head: 74.88% // Decreases project coverage by -0.16% ⚠️

Coverage data is based on head (95864bf) compared to base (baddf40).
Patch coverage: 18.18% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2621      +/-   ##
==========================================
- Coverage   75.03%   74.88%   -0.16%     
==========================================
  Files         411      411              
  Lines       41557    41568      +11     
==========================================
- Hits        31184    31127      -57     
- Misses      10373    10441      +68     
Impacted Files Coverage Δ
pkg/ipmi/blobs/blob_transfer.go 0.00% <0.00%> (ø)
pkg/ipmi/ipmi_linux.go 100.00% <100.00%> (+16.66%) ⬆️
pkg/acpi/sdt.go 0.00% <0.00%> (-86.67%) ⬇️
pkg/acpi/bios.go 27.02% <0.00%> (-56.76%) ⬇️
pkg/acpi/raw.go 75.00% <0.00%> (-14.29%) ⬇️
pkg/acpi/rsdp.go 41.02% <0.00%> (-10.26%) ⬇️
cmds/core/date/date.go 90.83% <0.00%> (-0.77%) ⬇️
pkg/acpi/rsdp_unix.go 86.95% <0.00%> (+4.34%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

Comment thread pkg/ipmi/blobs/blob_transfer.go
This change makes two minor feature updates to the ipmi and blobs
packages:

1. Introduces OpenPath to open the ipmi device by full path instead of
   just device number.

2. Makes BlobStats's members public, so that BlobStat and
   BlobSessionStat can be used.

In testing this change, I noticed that BlobStat/BlobSessionStat had a
bug. Fixed that as well. (You can't pass a struct with a slice member to
binary.Read.)

Signed-off-by: Chris Fenner <cfenn@google.com>
Comment thread pkg/ipmi/blobs/blob_transfer.go
Comment thread pkg/ipmi/ipmi_linux.go
Comment thread pkg/ipmi/ipmi_linux.go
Signed-off-by: Chris Fenner <cfenn@google.com>
@hugelgupf hugelgupf merged commit f47afe2 into u-root:main Feb 22, 2023
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