Skip to content

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 <[email protected]>
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