Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 28 Jul 1999 23:17:35 +0200 (CEST)
From:      Oliver Fromme <olli@dorifer.heim3.tu-clausthal.de>
To:        freebsd-stable@FreeBSD.ORG
Subject:   Re: Does freeBSD or any related freeBSDs support file larger than 2GB on 32bit x86 platforms
Message-ID:  <199907282117.XAA00574@dorifer.heim3.tu-clausthal.de>

next in thread | raw e-mail | index | archive | help
Greg Black wrote in list.freebsd-stable:
 > Oliver Fromme writes:
 > 
 > > 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?  :)
 > 
 > Depends on your concept of impressive.  Look at this minor
 > variation:
 > 
 >     $ df .
 >     Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
 >     mfs:36          63503       14    58409     0%    /tmp
 >     $ touch foo
 >     $ truncate `echo "2^43 - 1" | bc` foo
 >     $ ls -ls foo
 >     32 -rw-rw----  1 gjb  wheel  8796093022207 Jul 29 06:49 foo
 >     $ df .
 >     Filesystem  1K-blocks     Used    Avail Capacity  Mounted on
 >     mfs:36          63503       46    58377     0%    /tmp
 > 
 > I suppose you could claim that fitting a Terabyte+ size file
 > into a 64 Mbyte file system was impressive.  But since the file
 > really only uses 32 Kbytes (as shown by the ls(1) and df(1)
 > output), I'd call it a bit of a scam ...

Well, _of course_ it is creating a sparse file, or did you
think that I've got 8 Tbyte of disk space?  I wish I had.  :-)

I meant that the number itself is impressive, and the fact
that FreeBSD does support files of that size, whether sparse
or not.

Regards
   Oliver

-- 
Oliver Fromme, Leibnizstr. 18/61, 38678 Clausthal, Germany
(Info: finger userinfo:olli@dorifer.heim3.tu-clausthal.de)

"In jedem Stück Kohle wartet ein Diamant auf seine Geburt"
                                         (Terry Pratchett)


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




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