Jump to content

Huge Small File

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
4 replies to this topic

#1
John

John

    Writes binary right handed and hex left handed

  • Moderators
  • 6,321 posts
I found a program [whose name is the name of this thread] whose "Size" is 4gb and its "Size on disk" is 4kb [the file is fake of course, but my file system doesn't know it]. How does it work?

#2
Chinmoy

Chinmoy

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 392 posts
try a disk check on your disk. The file may be recognized or correctly truncated..

God is real... unless declared an integer

my blog :: http://techarraz.com/


#3
Guest_Jordan_*

Guest_Jordan_*
  • Guests
It is probably similar to when you download BitTorrents. The file size may show 1gb even though the file just started downloading and only has 3k in it. I believe it has something to do with writing to the file index (this is not correct terminology) on the hard drive a file size but actually only filling it with 4kb of data. Then again, I don't really know....

#4
TcM

TcM

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 11,147 posts
Yes, even FlashGet makes that.

I think it's called malloc (Memory Allocator), it's even a function in C++

#5
Chinmoy

Chinmoy

    Programming Expert

  • Members
  • PipPipPipPipPipPip
  • 392 posts
as i said Its an error on the file system. On the file system the file is registered as a huge file but only a part has been received as stated by jordan and tcm. This has kept the reserved space but used only the actual size. Try a disk check with any disk checking software. The invalid entry point will be truncated from the file and the size on disk will be restored.

Edited by Chinmoy, 27 March 2008 - 10:17 PM.

God is real... unless declared an integer

my blog :: http://techarraz.com/