From owner-cvs-all Sat May 18 14:33:11 2002 Delivered-To: cvs-all@freebsd.org Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by hub.freebsd.org (Postfix) with ESMTP id CD28E37B400; Sat, 18 May 2002 14:33:07 -0700 (PDT) Received: (from iedowse@localhost) by freefall.freebsd.org (8.11.6/8.11.6) id g4ILX7H43749; Sat, 18 May 2002 14:33:07 -0700 (PDT) (envelope-from iedowse) Message-Id: <200205182133.g4ILX7H43749@freefall.freebsd.org> From: Ian Dowse Date: Sat, 18 May 2002 14:33:07 -0700 (PDT) To: cvs-committers@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sys/gnu/ext2fs ext2_alloc.c ext2_vfsops.c X-FreeBSD-CVS-Branch: HEAD Sender: owner-cvs-all@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG iedowse 2002/05/18 14:33:07 PDT Modified files: sys/gnu/ext2fs ext2_alloc.c ext2_vfsops.c Log: Fix two off-by-one errors when sanity-checking inode numbers. In ext2fs, inode numbers start at 1, so the maximum valid inode number is (s_inodes_per_group * s_groups_count), not one less. This is just a minimal change to avoid unnecessary panics and errors; some other related bugs that Bruce Evans mentioned to me are not addressed. Reviewed by: bde (ages ago) Revision Changes Path 1.37 +1 -1 src/sys/gnu/ext2fs/ext2_alloc.c 1.95 +1 -1 src/sys/gnu/ext2fs/ext2_vfsops.c To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe cvs-all" in the body of the message