tests/int/update: fix getting block major by kolyshkin · Pull Request #4807 · opencontainers/runc (original) (raw)
kolyshkin changed the title
[debug] tests/int/update: fix getting block major
kolyshkin marked this pull request as ready for review
rata approved these changes Jul 16, 2025
Apparently, having a minor of 0 does not always mean it's the whole device (not a partition):
=== /proc/partitions (using major: 259) ===
major minor #blocks name
8 16 78643200 sdb
8 17 77593583 sdb1
8 30 4096 sdb14
8 31 108544 sdb15
259 0 934912 sdb16
8 0 78643200 sda
8 1 78641152 sda1Rewrite the test to not assume minor is 0, and use lsblk -d to find out whole devices.
This fixes a test case which was added in commit 7696402.
Signed-off-by: Kir Kolyshkin kolyshkin@gmail.com
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.Learn more about bidirectional Unicode characters
[ Show hidden characters]({{ revealButtonHref }})