I'm downloading with KTorrent, and have noticed that when I select "allocate disk space before starting torrent", it creates all the files at start, presumably empty, to avoid fragmentation.
When I'm in the folder and use ls
, it shows the allocated sizes, but also the total size, and those two don't add up. df
also reports only the really used space.
ls -lH
total 745M -rw-r--r-- 1 ##### ##### 542M Feb 8 15:55 Star Trek - 1x01 - The Cage.avi -rw-r--r-- 1 ##### ##### 351M Feb 8 14:37 Star Trek - 1x02 - Where No Man Has Gone Before.avi -rw-r--r-- 1 ##### ##### 346M Feb 8 16:04 Star Trek - 1x03 - The Corbomite Maneuver.avi -rw-r--r-- 1 ##### ##### 350M Feb 8 16:02 Star Trek - 1x04 - Mudd's Women.avi -rw-r--r-- 1 ##### ##### 350M Feb 8 15:35 Star Trek - 1x05 - The Enemy Within.avi -rw-r--r-- 1 ##### ##### 350M Feb 8 15:37 Star Trek - 1x06 - The Man Trap.avi ... (many more)
However, with the -s
option, I get real sizes:
ls -s
total 728M 0 Star Trek - 1x01 - The Cage.avi 351M Star Trek - 1x02 - Where No Man Has Gone Before.avi 42M Star Trek - 1x03 - The Corbomite Maneuver.avi 195M Star Trek - 1x04 - Mudd's Women.avi 5.8M Star Trek - 1x05 - The Enemy Within.avi 9.7M Star Trek - 1x06 - The Man Trap.avi .... (size matches)
How is that possible? Is there some "file size" setting in the filesystem (ext4), that ls
reads (sometimes) and df
ignores?