From owner-cvs-src-old@FreeBSD.ORG Tue Mar 8 17:27:56 2011 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 DA690106566C for ; Tue, 8 Mar 2011 17:27:56 +0000 (UTC) (envelope-from jh@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id C6D138FC16 for ; Tue, 8 Mar 2011 17:27:56 +0000 (UTC) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.4/8.14.4) with ESMTP id p28HRuCe015587 for ; Tue, 8 Mar 2011 17:27:56 GMT (envelope-from jh@repoman.freebsd.org) Received: (from svn2cvs@localhost) by repoman.freebsd.org (8.14.4/8.14.4/Submit) id p28HRuGQ015586 for cvs-src-old@freebsd.org; Tue, 8 Mar 2011 17:27:56 GMT (envelope-from jh@repoman.freebsd.org) Message-Id: <201103081727.p28HRuGQ015586@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: svn2cvs set sender to jh@repoman.freebsd.org using -f From: Jaakko Heinonen Date: Tue, 8 Mar 2011 17:27:36 +0000 (UTC) To: cvs-src-old@freebsd.org X-FreeBSD-CVS-Branch: RELENG_8 Subject: cvs commit: src/sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c 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: Tue, 08 Mar 2011 17:27:56 -0000 jh 2011-03-08 17:27:36 UTC FreeBSD src repository Modified files: (Branch: RELENG_8) sys/fs/tmpfs tmpfs.h tmpfs_subr.c tmpfs_vfsops.c Log: SVN rev 219401 on 2011-03-08 17:27:36Z by jh MFC r201773: - Change the type of size_max to u_quad_t because its value is converted with vfs_scanopt(9) using the "%qu" format string. - Limit the maximum value of size_max to (SIZE_MAX - PAGE_SIZE) to prevent overflow in howmany() macro. PR: kern/141194 MFC r202187: - Fix some style bugs in tmpfs_mount(). - Remove a stale comment about tmpfs_mem_info() 'total' argument. MFC r202708: - Change the type of nodes_max to u_int and use "%u" format string to convert its value. - Set default tm_nodes_max to min(pages + 3, UINT32_MAX). It's more reasonable than the old four nodes per page (with page size 4096) because non-empty regular files always use at least one page. This fixes possible overflow in the calculation. - Don't allow more than tm_nodes_max nodes allocated in tmpfs_alloc_node(). PR: kern/138367 Revision Changes Path 1.17.2.3 +0 -4 src/sys/fs/tmpfs/tmpfs.h 1.23.2.4 +1 -1 src/sys/fs/tmpfs/tmpfs_subr.c 1.21.2.2 +15 -12 src/sys/fs/tmpfs/tmpfs_vfsops.c