From owner-freebsd-hackers Thu Mar 23 14:39:27 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from apollo.backplane.com (apollo.backplane.com [216.240.41.2]) by hub.freebsd.org (Postfix) with ESMTP id 1DB7A37C62E for ; Thu, 23 Mar 2000 14:38:48 -0800 (PST) (envelope-from dillon@apollo.backplane.com) Received: (from dillon@localhost) by apollo.backplane.com (8.9.3/8.9.1) id OAA05012; Thu, 23 Mar 2000 14:38:44 -0800 (PST) (envelope-from dillon) Date: Thu, 23 Mar 2000 14:38:44 -0800 (PST) From: Matthew Dillon Message-Id: <200003232238.OAA05012@apollo.backplane.com> To: Markus Stumpf Cc: freebsd-hackers@FreeBSD.ORG Subject: Re: 3.4 - large file - seek problems References: <20000323232610.E11408@Space.Net> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG :This is FreeBSD 3.4 : :Hmmm ... I've thought files larger than 2 GB are supported since around :2.2.5. :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. : :Has anybody else seen this problem or did I screw something up? : :Thanks, : : \Maex :SpaceNet GmbH | http://www.Space.Net/ | Stress is when you wake The system supports files over 2GB fine, but obviously 'less' and 'tail' do not. A quick look at 'tail' shows that it is attempting to mmap() the entire file, and this will obviosly fail since the address space isn't big enough. So 'less' and 'tail' are broken. -Matt Matthew Dillon :Research & Development | mailto:maex-sig@Space.Net | up screaming and you :Joseph-Dollinger-Bogen 14 | Tel: +49 (89) 32356-0 | realize you haven't :D-80807 Muenchen | Fax: +49 (89) 32356-299 | fallen asleep yet. : : :To Unsubscribe: send mail to majordomo@FreeBSD.org :with "unsubscribe freebsd-hackers" in the body of the message : To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message