From owner-freebsd-hackers Tue Feb 15 11:53:39 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from soda.csua.Berkeley.edu (soda.CSUA.Berkeley.EDU [128.32.43.52]) by builder.freebsd.org (Postfix) with ESMTP id B2DFA4491 for ; Tue, 15 Feb 2000 11:25:33 -0800 (PST) Received: from soda.csua.Berkeley.edu (localhost [127.0.0.1]) by soda.csua.Berkeley.edu (8.8.8/) via ESMTP id LAA02584; Tue, 15 Feb 2000 11:24:30 -0800 (PST) env-from (jwm@CSUA.Berkeley.EDU) Message-Id: <200002151924.LAA02584@soda.csua.Berkeley.edu> To: Peter Wemm Cc: Joe Greco , hackers@FreeBSD.ORG Subject: Re: Filesystem size limit? In-reply-to: Message from Peter Wemm of "Tue, 15 Feb 2000 22:18:10 +0800." <20000215141810.AACBC1CD9@overcee.netplex.com.au> Date: Tue, 15 Feb 2000 11:24:30 -0800 From: John Milford Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Peter Wemm wrote: > > /usr/include/sys/disklabel.h: > u_int32_t p_size; /* number of sectors in partition */ > > newfs.c: > int fssize; /* file system size */ > .. > havelabel: > if (fssize == 0) > fssize = pp->p_size; > > 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 expect > there to be more problems that this to bite you though. :-( > > 2^31 also happens to be the mmap() file offset limit FWIW. > > BTW; what on earth is going on this beastie? Is this raid5 or stripe/concat? > (And I'd hate to be waiting for a fsck :-) > > Cheers, > -Peter > > > Is there any real interest in moving beyond 1TB? I think that it would incur a non-trival overhead as I believe that unsigned ints would not work and we would be looking at going to 64 bit values. Or I guess something could be done to simulate larger sectors, but that is pure speculation. --John To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message