Date: Sat, 4 Sep 2004 14:54:01 +0000 (UTC) From: Ian Dowse <iedowse@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/lib/libstand ufs.c Message-ID: <200409041454.i84Es1aQ085820@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200409041454.i84Es1aQ085820>