From owner-cvs-all@FreeBSD.ORG Thu Aug 14 04:02:04 2003 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 06B2F37B401; Thu, 14 Aug 2003 04:02:04 -0700 (PDT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8B08443F75; Thu, 14 Aug 2003 04:02:03 -0700 (PDT) (envelope-from dg@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.6/8.12.6) with ESMTP id h7EB230U027800; Thu, 14 Aug 2003 04:02:03 -0700 (PDT) (envelope-from dg@repoman.freebsd.org) Received: (from dg@localhost) by repoman.freebsd.org (8.12.6/8.12.6/Submit) id h7EB23Xg027799; Thu, 14 Aug 2003 04:02:03 -0700 (PDT) Message-Id: <200308141102.h7EB23Xg027799@repoman.freebsd.org> From: David Greenman Date: Thu, 14 Aug 2003 04:02:03 -0700 (PDT) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.bin/tail forward.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: Thu, 14 Aug 2003 11:02:04 -0000 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