Stories
Slash Boxes
Comments

All the Perl that's Practical to Extract and Report

use Perl Log In

Log In

[ Create a new account ]

pudge (1)

pudge
  (email not shown publicly)
http://pudge.net/
AOL IM: Crimethnk (Add Buddy, Send Message)

I run this joint, see?

Journal of pudge (1)

Tuesday March 04, 2008
06:28 PM

Stupid File Size Calculations

[ #35837 ]

I back up my PS3 to a USB drive, which has a FAT32 partition. The archive folder reported only 3.2GB, but there was about 7.2GB in use.

The Finder and du both reported 3.2GB. I finally tracked it down to a file that is 4GB, but reports as 0. Most of the time. Note that even ls -s gets it wrong, but ls -l gets it right.

$ du archive2_00.dat
0    archive2_00.dat
$ ls -s archive2_00.dat
0 archive2_00.dat
$ ls -l archive2_00.dat
-rwxrwxrwx  1 pudge  pudge  4294966784 Feb 21 22:21 archive2_00.dat

The Finder was similarly confused.

Cross-posted on <pudge/*>.

Now Playing: Writ On Water - Dead Give Away

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • Well, it is FAT32... What do you expect from a filesystem made during the Depression [wikipedia.org]?
    • Re: (Score:3, Insightful)

      Actually, it is not so much FAT32 that I have a problem with here (I think?) ... it's that Mac OS X is misreporting what FAT32 tells it. Or something.