Skip to content

Conversation

@thaJeztah
Copy link
Member

Test "--device-read-bps" "--device-write-bps" will fail. The root cause is that GetList helper return empty as its local variable initialized to zero size.

This patch fix it by setting the related slice size to non-zero.

(cherry picked from commit 73e78a5)

- What I did

- How I did it

- How to verify it

- Description for the changelog

Fix `--device-read-bps` and `--device-write-bps` options not taking effect.

- A picture of a cute animal (not mandatory but encouraged)

Test "--device-read-bps" "--device-write-bps" will fail. The root
cause is that GetList helper return empty as its local variable
initialized to zero size.

This patch fix it by setting the related slice size to non-zero.

Signed-off-by: Jianyong Wu <[email protected]>
Fixes: docker#5321
(cherry picked from commit 73e78a5)
Signed-off-by: Sebastiaan van Stijn <[email protected]>
@codecov-commenter
Copy link

Codecov Report

Attention: Patch coverage is 0% with 1 line in your changes missing coverage. Please review.

Project coverage is 61.36%. Comparing base (a72d7cd) to head (e1246ba).

Additional details and impacted files
@@           Coverage Diff           @@
##             26.1    #5340   +/-   ##
=======================================
  Coverage   61.36%   61.36%           
=======================================
  Files         298      298           
  Lines       20712    20712           
=======================================
  Hits        12709    12709           
  Misses       7102     7102           
  Partials      901      901           

@vvoland vvoland merged commit dea625c into docker:26.1 Aug 12, 2024
@thaJeztah thaJeztah deleted the 26.1_backport_fix_bps_limit branch August 12, 2024 10:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants