Skip to content

Resolve the correct block device name when not a partition#1

Open
yhr wants to merge 1 commit intocern-eos:masterfrom
yhr:fix_block_dev_name_lookup
Open

Resolve the correct block device name when not a partition#1
yhr wants to merge 1 commit intocern-eos:masterfrom
yhr:fix_block_dev_name_lookup

Conversation

@yhr
Copy link

@yhr yhr commented Jan 20, 2026

Only look up the parent block device if the block device is a partition

Without this fix i get the following report for a fs mounted on /dev/sda:

Queue and I/O settings:
queue_depth: (not found: /sys/block/block/device/queue_depth)
nr_requests: (not found: /sys/block/block/queue/nr_requests)
max_sectors_kb: (not found: /sys/block/block/queue/max_sectors_kb)
scheduler: (not found: /sys/block/block/queue/scheduler)
write_cache (sys) : (not found: /sys/block/block/queue/write_cache)

Only look up the parent block device if the block device is a
partition

Without this fix i get the following report for a fs mounted on
/dev/sda:

Queue and I/O settings:
queue_depth: (not found: /sys/block/block/device/queue_depth)
nr_requests: (not found: /sys/block/block/queue/nr_requests)
max_sectors_kb: (not found: /sys/block/block/queue/max_sectors_kb)
scheduler: (not found: /sys/block/block/queue/scheduler)
write_cache (sys) : (not found: /sys/block/block/queue/write_cache)

Signed-off-by: Hans Holmberg <hans.holmberg@wdc.com>
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.

1 participant