From owner-freebsd-hackers Thu Mar 23 15:18:51 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from dan.emsphone.com (dan.emsphone.com [199.67.51.101]) by hub.freebsd.org (Postfix) with ESMTP id C28A537BB8E for ; Thu, 23 Mar 2000 15:18:46 -0800 (PST) (envelope-from dan@dan.emsphone.com) Received: (from dan@localhost) by dan.emsphone.com (8.9.3/8.9.3) id RAA61563; Thu, 23 Mar 2000 17:18:36 -0600 (CST) (envelope-from dan) Date: Thu, 23 Mar 2000 17:18:36 -0600 From: Dan Nelson To: Markus Stumpf Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 3.4 - large file - seek problems Message-ID: <20000323171836.A59166@dan.emsphone.com> References: <20000323232610.E11408@Space.Net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.1.5i In-Reply-To: <20000323232610.E11408@Space.Net>; from "Markus Stumpf" on Thu Mar 23 23:26:10 GMT 2000 X-OS: FreeBSD 5.0-CURRENT Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG In the last episode (Mar 23), Markus Stumpf said: > This is FreeBSD 3.4 > > Hmmm ... I've thought files larger than 2 GB are supported since > around 2.2.5. Large files are supported yes. It's up to the applications to accomodate them though (by using fseeko() instead of fseek(), and off_t instead of int for file positions). > Now I have a logfile of a apache server that is > -rw-rw-r-- 1 root wheel 2412880509 Mar 23 22:05 access.http.200003-01 > > If I do > $ less access.http.200003-01 > Cannot seek to that file position > if I do > $ tail access.http.200003-01 > tail: access.http.200003-01: Invalid argument > and then tail just starts outputting the file starting at the first line. The tail bug has been reported as PR bin/14786, and it looks like there's a patch in there. See if it fixes your problem. As for less, you can contact the author and see if he can fix it; it's not a stock FreeBSD program. -- Dan Nelson dnelson@emsphone.com To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message