[LTP] [PATCH] readahead02: fix path for read_ahead_kb on raw partitions

Cyril Hrubis chrubis@suse.cz
Mon Sep 19 11:37:55 CEST 2016


Hi!
> Path to read_ahead_kb is not consistent for all block devices,
> for example for LVM it's:
>   /sys/dev/block/$maj:$min/queue/read_ahead_kb
> but for raw partitions "queue" is only in "parent" device:
>   /sys/dev/block/$maj:$min/../queue/read_ahead_kb
> 
> This patch checks both types and reads first one it can find.
> Tested on LVM and raw partitions with 4.7.3.

Fixes the problem for me as well (minus the Btrfs anonymous block
devices that has to be fixed).

Acked.

-- 
Cyril Hrubis
chrubis@suse.cz


More information about the ltp mailing list