Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

What is this file?and how? 1

Status
Not open for further replies.

jouell

MIS
Nov 19, 2002
304
US
Say I have a normal file on an ext3 filesystem.

The fs is 20 GB, but the file is listed as greater than that, say 30 GB as reported by ls. How is this possible?

Thanks!
-John


 
Are you sure you're reading the ls output correctly? "ls -l" shows the size in bytes. What size do you think the file really is?
 
ext3 will "compress" blocks filled entirely with 0s. If you have a lot of empty blocks, you can get over the filesystem limit quite easily.

: Daniel :

-
 
Hi yes ls is definitely showing correctly.

 
Please show us the output listing of "ls -lh" ;-)

azimuth may be on to something though.

-Haben sie fosforos?
-No tiengo caballero, but I have un briquet.
 
azimuth0:
When you say 0, do you mean 0 as in null or zero as in the numeral 0?

Just for fun, I tried doing dd if=/dev/zero of=zerofile bs=1M. It filled all the free space as expected.


--== Anything can go wrong. It's just a matter of how far wrong it will go till people think its right. ==--
 
I think azimuth0 is right.
A Google search for "sparse file" gives a lot of information.
 
Hi Thanks to all for the response.

This is more of a theory question, see my original post, I am looking for some ideas of the topic.

I think hoinz hit upon the answer, or at least one of them.

Any other thoughts anyone?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top