cvs commit: src/usr.bin/tail forward.c
David Greenman
dg at FreeBSD.org
Thu Aug 14 04:02:04 PDT 2003
dg 2003/08/14 04:02:03 PDT
FreeBSD src repository
Modified files:
usr.bin/tail forward.c
Log:
Removed check of st_rdev changing in the -F support. st_rdev for regular
files is usually the first direct block pointer. Since FreeBSD does
automatic block reallocation to reduce filesystem fragmentation, the
file being tailed can be relocated to different blocks 'on-the-fly',
making the check for st_rdev unreliable. The result of this bug is
tail -F pseudo-randomnly thinking the file was rotated when it wasn't,
and as a result, spews out the entire file trying to catch up.
MFC after: 3 days
Revision Changes Path
1.33 +0 -1 src/usr.bin/tail/forward.c
More information about the cvs-src
mailing list