From owner-cvs-src-old@FreeBSD.ORG Mon Sep 28 17:02:23 2009 Return-Path: Delivered-To: cvs-src-old@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id F11EB106566C for ; Mon, 28 Sep 2009 17:02:23 +0000 (UTC) (envelope-from delphij@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id DEFF38FC26 for ; Mon, 28 Sep 2009 17:02:23 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.3/8.14.3) with ESMTP id n8SH2NZC017332 for ; Mon, 28 Sep 2009 17:02:23 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id n8SH2Njl017331 for cvs-src-old@freebsd.org; Mon, 28 Sep 2009 17:02:23 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <200909281702.n8SH2Njl017331@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Mon, 28 Sep 2009 16:59:47 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libc/sys fcntl.2 src/sys/kern kern_descrip.c vfs_vnops.c src/sys/sys fcntl.h X-BeenThere: cvs-src-old@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: **OBSOLETE** CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 28 Sep 2009 17:02:24 -0000 delphij 2009-09-28 16:59:47 UTC FreeBSD src repository Modified files: lib/libc/sys fcntl.2 sys/kern kern_descrip.c vfs_vnops.c sys/sys fcntl.h Log: SVN rev 197579 on 2009-09-28 16:59:47Z by delphij Add two new fcntls to enable/disable read-ahead: - F_READAHEAD: specify the amount for sequential access. The amount is specified in bytes and is rounded up to nearest block size. - F_RDAHEAD: Darwin compatible version that use 128KB as the sequential access size. A third argument of zero disables the read-ahead behavior. Please note that the read-ahead amount is also constrainted by sysctl variable, vfs.read_max, which may need to be raised in order to better utilize this feature. Thanks Igor Sysoev for proposing the feature and submitting the original version, and kib@ for his valuable comments. Submitted by: Igor Sysoev Reviewed by: kib@ MFC after: 1 month Revision Changes Path 1.48 +17 -1 src/lib/libc/sys/fcntl.2 1.358 +44 -0 src/sys/kern/kern_descrip.c 1.289 +3 -0 src/sys/kern/vfs_vnops.c 1.26 +7 -2 src/sys/sys/fcntl.h