From owner-cvs-src-old@FreeBSD.ORG Mon Dec 7 20:04:25 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 88226106566C for ; Mon, 7 Dec 2009 20:04:25 +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 747268FC23 for ; Mon, 7 Dec 2009 20:04:25 +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 nB7K4P95059970 for ; Mon, 7 Dec 2009 20:04:25 GMT (envelope-from delphij@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.3/8.14.3/Submit) id nB7K4Pld059969 for cvs-src-old@freebsd.org; Mon, 7 Dec 2009 20:04:25 GMT (envelope-from delphij@repoman.freebsd.org) Message-Id: <200912072004.nB7K4Pld059969@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to delphij@repoman.freebsd.org using -f From: Xin LI Date: Mon, 7 Dec 2009 19:59:28 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 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, 07 Dec 2009 20:04:25 -0000 delphij 2009-12-07 19:59:28 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) lib/libc/sys fcntl.2 sys/kern kern_descrip.c vfs_vnops.c sys/sys fcntl.h Log: SVN rev 200229 on 2009-12-07 19:59:28Z by delphij MFC revision 197579 and 199617: 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. Revision Changes Path 1.47.2.2 +17 -1 src/lib/libc/sys/fcntl.2 1.357.2.2 +45 -0 src/sys/kern/kern_descrip.c 1.286.2.3 +3 -0 src/sys/kern/vfs_vnops.c 1.25.2.2 +7 -2 src/sys/sys/fcntl.h