Dec 5, 2005 #1 jouell MIS Joined Nov 19, 2002 Messages 304 Location 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
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
Dec 5, 2005 #2 TonyGroves Programmer Joined Aug 13, 2003 Messages 2,389 Location IE 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? Upvote 0 Downvote
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?
Dec 5, 2005 #3 azimuth0 Programmer Joined Sep 26, 2003 Messages 57 Location US 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 : - http://www.bitmuse.com/ Upvote 0 Downvote
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 : - http://www.bitmuse.com/
Dec 5, 2005 Thread starter #4 jouell MIS Joined Nov 19, 2002 Messages 304 Location US Hi yes ls is definitely showing correctly. Upvote 0 Downvote
Dec 5, 2005 #5 plamb MIS Joined Apr 9, 2003 Messages 346 Location US please show us the output listing Upvote 0 Downvote
Dec 5, 2005 #6 Trevoke Programmer Joined Jun 6, 2002 Messages 1,142 Location US 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. Upvote 0 Downvote
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.
Dec 5, 2005 #7 zeland IS-IT--Management Joined Aug 19, 2002 Messages 569 Location MY 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. ==-- Upvote 0 Downvote
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. ==--
Dec 6, 2005 1 #8 hoinz MIS Joined Jan 29, 2004 Messages 944 Location DE I think azimuth0 is right. A Google search for "sparse file" gives a lot of information. Upvote 0 Downvote
Dec 6, 2005 #9 hoinz MIS Joined Jan 29, 2004 Messages 944 Location DE These links, amongst others, may be helpful: http://en.wikipedia.org/wiki/Sparse_filehttp://mldonkey.berlios.de/modules.php?name=Wiki&pagename=sparse files Upvote 0 Downvote
These links, amongst others, may be helpful: http://en.wikipedia.org/wiki/Sparse_filehttp://mldonkey.berlios.de/modules.php?name=Wiki&pagename=sparse files
Dec 7, 2005 Thread starter #10 jouell MIS Joined Nov 19, 2002 Messages 304 Location US 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? Upvote 0 Downvote
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?