]> err.no Git - util-linux/commit
libblkid: disable read-ahead when probing device files
authorLinus Torvalds <torvalds@linux-foundation.org>
Mon, 18 Jan 2010 23:09:21 +0000 (00:09 +0100)
committerKarel Zak <kzak@redhat.com>
Mon, 18 Jan 2010 23:13:16 +0000 (00:13 +0100)
commita67bb3bff5dc51400294fdfb4c77c0827afd5d14
tree4ac5f1a4272d0d95106634ef0e044eb6bffc787b
parent45835b734574264fcd45d9e6c1736061f6f7c200
libblkid: disable read-ahead when probing device files

Read-ahead doesn't work very well on device probing, and can hurt a lot
when we do essentially random accesses on very slow devices. So disable it
if possible.

[kzak@redhat.com: - add posix_fadvise() configure test]

Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Karel Zak <kzak@redhat.com>
configure.ac
shlibs/blkid/src/probe.c