Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 16 Feb 2000 09:03:37 +0800
From:      Peter Wemm <peter@netplex.com.au>
To:        Matthew Dillon <dillon@apollo.backplane.com>
Cc:        John Milford <jwm@CSUA.Berkeley.EDU>, Joe Greco <jgreco@ns.sol.net>, hackers@FreeBSD.ORG
Subject:   Re: Filesystem size limit? 
Message-ID:  <20000216010337.5F6321CDB@overcee.netplex.com.au>
In-Reply-To: Message from Matthew Dillon <dillon@apollo.backplane.com>  of "Tue, 15 Feb 2000 16:25:11 PST." <200002160025.QAA46340@apollo.backplane.com> 

next in thread | previous in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20000216010337.5F6321CDB>