commit 57775dd9f3e579d2a779a2ed4e851bbd72f1858a from: rsc date: Fri Apr 27 19:32:12 2007 UTC cannot use fadv_random on linux -- too slow commit - ef67e917aa88e68862d086f0fe60b1f42529ac4e commit + 57775dd9f3e579d2a779a2ed4e851bbd72f1858a blob - 2be6a19fb87c2f3081e6cb2c02732e9c2ace1dc6 blob + 59dd54925509242449492cdca07da69c23868023 --- src/cmd/venti/srv/part.c +++ 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){