From owner-freebsd-stable Thu Jul 29 3:59: 8 1999 Delivered-To: freebsd-stable@freebsd.org Received: from home2.ecore.net (home2.ecore.net [212.63.128.224]) by hub.freebsd.org (Postfix) with ESMTP id 84B7015443 for ; Thu, 29 Jul 1999 03:58:31 -0700 (PDT) (envelope-from sold@cheasy.de) Received: from kiste.cheasy.de [212.63.145.25] by home2.ecore.net with ESMTP (SMTPD32-5.04) id A3C5EF90446; Thu, 29 Jul 1999 12:58:13 +0200 Received: (from sold@localhost) by kiste.cheasy.de (8.9.2/8.9.2) id VAA05354; Wed, 28 Jul 1999 21:32:26 +0200 (CEST) (envelope-from sold) From: Christoph Sold Date: Wed, 28 Jul 1999 21:32:26 +0200 (CEST) To: freebsd-stable@FreeBSD.ORG Cc: gdsntusr@globaldelsys.com Subject: Re: Does freeBSD or any related freeBSDs support file larger than 2GB on 32bit x86 platforms In-Reply-To: <199907272205.AAA10989@dorifer.heim3.tu-clausthal.de> References: <199907272205.AAA10989@dorifer.heim3.tu-clausthal.de> X-Mailer: VM 6.43 under 20.4 "Emerald" XEmacs Lucid Message-ID: <14239.22848.139612.71015@kiste.cheasy.de> Mime-Version: 1.0 (generated by tm-edit 7.108) Content-Type: text/plain; charset=US-ASCII Sender: owner-freebsd-stable@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Oliver Fromme writes: > gdsntusr@globaldelsys.com wrote in list.freebsd-stable: > > [...] I was thinking of trying freeBSD with its SCO emulation > > support but I am uncertain whether freeBSD supports files larger than 2GB on > > 32bit x86 platforms. > > It certainly does. > > olli@dao-lin-hay:/tmp> touch foobar > olli@dao-lin-hay:/tmp> truncate `echo "2^43 - 1" | bc` foobar > olli@dao-lin-hay:/tmp> ls -l foobar > -rw-r--r-- 1 olli wheel 8796093022207 Jul 27 23:55 foobar > olli@dao-lin-hay:/tmp> > > That's 8 Tbyte - 1. Impressive, isn't it? :) > > By the way, off_t (the data type used for seeking in files and > other things) is 64 bits in FreeBSD, even on the 32bit i386 > platform, so this is not limiting. This shows FreeBSD is able to create sparse files bigger than 2GB. It does not neccessarily show there are l_seek calls in the icbs emulator supporting 64k file offsets. To answer the original question, look in the sources of the SCO binary emulation for seek functions. If the offset is defined as 64 bit integer, FreeBSD SCO emulation will support random seek in files bigger than 2GB. -Christoph Sold P.S: No, I have not looked into the source. I have no idea where the SCO emulator lives in the source tree. Please correct me if I am wrong. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-stable" in the body of the message