Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 14 Aug 2003 04:02:03 -0700 (PDT)
From:      David Greenman <dg@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/usr.bin/tail forward.c
Message-ID:  <200308141102.h7EB23Xg027799@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200308141102.h7EB23Xg027799>