Freaky / Compactor

A user interface for Windows 10 filesystem compression
MIT License
1.16k stars 47 forks source link

What would happen if I uncompress after adding extra files that exceeds the actual disk size? #90

Open medovanx opened 1 year ago

medovanx commented 1 year ago

First off thanks for this great software with the GUI, I have a question tho, say I have a 256 HDD hard disk, I only have 5 GB left, I used compactor and let's say now I have 15 GB, so it saved me 10 GB, what would happen if I install anything that's 10 GB (using the free space compactor saved me) then I uncompress the other files so now it would be 10+10 = 20 GB, and I only had 5 GB left, just a scenario..

Freaky commented 1 year ago

That's a good question. Obviously it'll fail, but I'm not sure precisely how - the ideal case would be failing to even start because it can't allocate the space it needs, the less-than-ideal case would be to fill up the disk and error out, and the even less than ideal case would be to fail and not clean up properly.

In either case that's on the routines Microsoft wrote in the driver more than me - you can trigger a decompression just by opening a file in the right mode, no Compactor or compact.exe needed - so it better be pretty robust!

I might dig out a small disk and try it...

medovanx commented 1 year ago

That's a good question. Obviously it'll fail, but I'm not sure precisely how - the ideal case would be failing to even start because it can't allocate the space it needs, the less-than-ideal case would be to fill up the disk and error out, and the even less than ideal case would be to fail and not clean up properly.

In either case that's on the routines Microsoft wrote in the driver more than me - you can trigger a decompression just by opening a file in the right mode, no Compactor or compact.exe needed - so it better be pretty robust!

I might dig out a small disk and try it...

Waiting to see the test result, if you ever try it out!