diff options
author | pfg <pfg@FreeBSD.org> | 2013-06-09 01:19:22 +0000 |
---|---|---|
committer | pfg <pfg@FreeBSD.org> | 2013-06-09 01:19:22 +0000 |
commit | 2d8b3ad7fac17b8ea0626d96096ad53931194fe6 (patch) | |
tree | 917adeaf5cab25f757afa83859625ad68edd74b4 /sys/fs/ext2fs/ext2_inode_cnv.c | |
parent | 640526e3805496cda21ed4600cfaaf985d2f6159 (diff) | |
download | FreeBSD-src-2d8b3ad7fac17b8ea0626d96096ad53931194fe6.zip FreeBSD-src-2d8b3ad7fac17b8ea0626d96096ad53931194fe6.tar.gz |
libstand: Reset the seek pointer in ext2fs as done in UFS.
Based on r134760:
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.
PR: 177328
Submitted by: Eric van Gyzen
Reviewed by: iedowse
MFC after: 5 days
Diffstat (limited to 'sys/fs/ext2fs/ext2_inode_cnv.c')
0 files changed, 0 insertions, 0 deletions