From owner-freebsd-hackers Tue Feb 15 17:38: 0 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from overcee.netplex.com.au (overcee.netplex.com.au [202.12.86.7]) by builder.freebsd.org (Postfix) with ESMTP id 62AEE4FE0 for ; Tue, 15 Feb 2000 17:03:19 -0800 (PST) Received: from netplex.com.au (localhost [127.0.0.1]) by overcee.netplex.com.au (Postfix) with ESMTP id 5F6321CDB; Wed, 16 Feb 2000 09:03:37 +0800 (WST) (envelope-from peter@netplex.com.au) X-Mailer: exmh version 2.1.1 10/15/1999 To: Matthew Dillon Cc: John Milford , Joe Greco , hackers@FreeBSD.ORG Subject: Re: Filesystem size limit? In-Reply-To: Message from Matthew Dillon of "Tue, 15 Feb 2000 16:25:11 PST." <200002160025.QAA46340@apollo.backplane.com> Date: Wed, 16 Feb 2000 09:03:37 +0800 From: Peter Wemm Message-Id: <20000216010337.5F6321CDB@overcee.netplex.com.au> Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Matthew Dillon wrote: > :> > :> ie: there is a signed 32 bit sector count limit. 2^31 == 1TB. It shouldn 't > :> be too hard to get it to create 2^32 bit (2TB) filesystem though. I'd exp ect > :> there to be more problems that this to bite you though. :-( > :> > :> 2^31 also happens to be the mmap() file offset limit FWIW. > > No it isn't. mmap() (under FreeBSD) takes an off_t for the file offset, > so the file offset limit is 2^63. The size of your map is limited to > the size of the user address space minus things already mapped -- > around 3 GB on IA32. Sorry, my comment was ambigious. mmap(2) is 64 bit aware at the syscall level, but it's the file and device backing that is limited to 2^31 blocks (as you confirmed before). Cheers, -Peter To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message