[LTP] [PATCH] readahead02: fix path for read_ahead_kb on raw partitions
Jan Stancek
jstancek@redhat.com
Mon Sep 19 14:46:13 CEST 2016
----- Original Message -----
> From: "Cyril Hrubis" <chrubis@suse.cz>
> To: "Jan Stancek" <jstancek@redhat.com>
> Cc: ltp@lists.linux.it
> Sent: Monday, 19 September, 2016 11:37:55 AM
> Subject: Re: [LTP] [PATCH] readahead02: fix path for read_ahead_kb on raw partitions
>
> 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.
Pushed.
Regards,
Jan
>
> --
> Cyril Hrubis
> chrubis@suse.cz
>
More information about the ltp
mailing list