plan9port

fork of plan9port with libvec, libstr and libsdb
Log | Files | Refs | README | LICENSE

commit 57775dd9f3e579d2a779a2ed4e851bbd72f1858a
parent ef67e917aa88e68862d086f0fe60b1f42529ac4e
Author: rsc <devnull@localhost>
Date:   Fri, 27 Apr 2007 19:32:12 +0000

cannot use fadv_random on linux -- too slow

Diffstat:
Msrc/cmd/venti/srv/part.c | 3---
1 file changed, 0 insertions(+), 3 deletions(-)

diff --git a/src/cmd/venti/srv/part.c b/src/cmd/venti/srv/part.c @@ -123,9 +123,6 @@ initpart(char *name, int mode) } fprint(2, "warning: %s opened for reading only\n", name); } -#ifdef __linux__ /* sorry again! still linus's fault! */ - posix_fadvise(part->fd, 0, 0, POSIX_FADV_RANDOM); /* disable readahead */ -#endif part->offset = lo; dir = dirfstat(part->fd); if(dir == nil){