1
0
mirror of git://sourceware.org/git/lvm2.git synced 2024-10-28 11:55:55 +03:00
lvm2/lib/device
Milan Broz d396100278 Use readahead of underlying device and not default (smaller) one.
When we are stacking LV over device, which has for some reason
increased read_ahead (e.g. MD RAID), the read_ahead hint
for libdevmapper is wrong (it is zero).

If the calculated read_ahead hint is zero, patch uses read_ahead of underlying device
(if first segment is PV) when setting DM_READ_AHEAD_MINIMUM_FLAG.

Because we are using dev-cache, it also store this value to cache for future use
(if several LVs are over one PV, BLKRAGET is called only once for underlying device.)

This should fix all the reamining problems with readahead mismatch reported
for DM over MD configurations (and similar cases).
2009-05-20 11:09:49 +00:00
..
dev-cache.c Use readahead of underlying device and not default (smaller) one. 2009-05-20 11:09:49 +00:00
dev-cache.h Fix inconsistent licence notices: executables are GPLv2; libraries LGPLv2.1. 2007-08-20 20:55:30 +00:00
dev-io.c Use readahead of underlying device and not default (smaller) one. 2009-05-20 11:09:49 +00:00
dev-md.c Fix conversion of md chunk size into sectors. 2008-10-03 14:22:18 +00:00
dev-swap.c Missed file from previous checkin. 2009-03-17 14:40:00 +00:00
device.c Some whitespace tidy-ups. 2008-01-30 14:00:02 +00:00
device.h Use readahead of underlying device and not default (smaller) one. 2009-05-20 11:09:49 +00:00