From owner-cvs-all@FreeBSD.ORG Sat Sep 4 14:54:02 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 00B6016A4CE; Sat, 4 Sep 2004 14:54:01 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id B77DC43D2F; Sat, 4 Sep 2004 14:54:01 +0000 (GMT) (envelope-from iedowse@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id i84Es11k085821; Sat, 4 Sep 2004 14:54:01 GMT (envelope-from iedowse@repoman.freebsd.org) Received: (from iedowse@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id i84Es1aQ085820; Sat, 4 Sep 2004 14:54:01 GMT (envelope-from iedowse) Message-Id: <200409041454.i84Es1aQ085820@repoman.freebsd.org> From: Ian Dowse Date: Sat, 4 Sep 2004 14:54:01 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/lib/libstand ufs.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 04 Sep 2004 14:54:02 -0000 iedowse 2004-09-04 14:54:01 UTC FreeBSD src repository Modified files: lib/libstand ufs.c Log: Reset the seek pointer to 0 when a file is successfully opened, since otherwise the initial seek offset will contain the directory offset of the filesystem block that contained its directory entry. This bug was mostly harmless because typically the directory is less than one filesystem block in size so the offset would be zero. It did however generally break loading a kernel from the (large) kernel compile directory. Also reset the seek pointer when a new inode is opened in read_inode(), though this is not actually necessary now because all callers set it afterwards. Revision Changes Path 1.15 +2 -0 src/lib/libstand/ufs.c