17GB file size is 325MB on disk?
They're called sparse files.
An application can tell the operating system that it's planning to write 17 GB to disk and the operating system will try to find the largest continuous chunks of empty space and mark them as reserved for that file, without a single byte being written to them.
As the app writes data to those chunks of empty space, the OS further splits those chunks into smaller pieces as needed.
Meanwhile, if another application asks the OS for disk space, if it has to the OS takes back one of those chunks of empty space and moves the reservation to the other app.
It's a bit technical but you can learn more about sparse files and ntfs compression here: https://en.wikipedia.org/wiki/Sparse_file and here: https://blogs.msdn.microsoft.com/ntdebugging/2008/05/20/understanding-ntfs-compression/
ps. And yes, NTFS file system holds some information about files and folders in a couple of hidden areas (files) on the partition. Usually for each created file, 512 bytes or more are used to hold the file info (file name, which folder it belongs to, file permissions, user rights etc) .. if the file has less than around 100-150 bytes (don't know the exact value), the whole content of the file can be stored in that hidden area instead of using space somewhere outside. In such case i guess once more bytes are supposed to be written, the os finds an empty chunk of space, moves those 100-150 bytes there and writes the new bytes in continuation then updates the file metadata to keep things all correct.
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now