Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 31 May 2001 23:18:41 -0500
From:      Andrew Hesford <ajh3@usrlib.org>
To:        Kris Kennaway <kris@obsecurity.org>
Cc:        Andrew Hesford <ajh3@usrlib.org>, Rick Hamell <hamellr@heorot.1nova.com>, Christoph Kukulies <kuku@gilberto.physik.rwth-aachen.de>, questions@freebsd.org
Subject:   Re: 2GB filesize limit?
Message-ID:  <20010531231841.B46862@core.usrlib.org>
In-Reply-To: <20010531120721.F96927@xor.obsecurity.org>; from kris@obsecurity.org on Thu, May 31, 2001 at 12:07:21PM -0700
References:  <200105310943.f4V9hgX04825@gilberto.physik.rwth-aachen.de> <Pine.BSF.4.21.0105300906180.38491-100000@heorot.1nova.com> <20010531114130.A45461@core.usrlib.org> <20010531120721.F96927@xor.obsecurity.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Thu, May 31, 2001 at 12:07:21PM -0700, Kris Kennaway wrote:
> On Thu, May 31, 2001 at 11:41:30AM -0500, Andrew Hesford wrote:
> > On Wed, May 30, 2001 at 09:06:54AM -0700, Rick Hamell wrote:
> > > > What is currently FreeBSD's max file size? 
> > > >
> > Maximum filesystem size is 2 gigablocks, maximum file size is 1
> > gigablock.
> Actually the max FS size is 2^31 sectors (usually 512 bytes), not
> blocks.  That comes out to 1 TB.

This is the maximum *partition* size. From /sys/ufs/ffs/fs.h, we have in
the definition of "struct fs" the following:

	int32_t fs_size		/* number of blocks in fs */

Hence a filesystem can have 2^31 blocks, or 2 gigablocks. 

For you, this means a whopping 32T filesystem (since you do use the 16k
block size.

> > With the standard 8K block size, this means you can have a
> > filesystem 16TB big, and a file 8TB big.
> 
> Ah yes, this explains my other message (I'm using 16k block sizes).
>
> Kris

It turns out I read (and responded to) your other message before I read
this one, but yes, it does. Mere commoners like me are restricted to 8T
files with truncate.

-- 
Andrew Hesford
ajh3@usrlib.org

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




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