petermad wrote: 2019-12-08, 10:47 UTC
smaller files ( typical <800 bytes) are stored there (in the MFT)
You got a point there. I just tested under Windows 10 on a FAT partition and here Windows reports a whole cluster (32768 bytes) used for the HELLO.txt file.
Convinced?
(But the whole point was merely a reminder for @tuska, as he already knows this stuff; otherwise I would have described it a little bit more accurate)
Usher wrote: 2019-12-08, 15:39 UTC
Use the Force of NTFS compression, Luke!
MS never fixed filesystem drivers to not compress small files (or files already compressed).
Interesting!
Unfortunately I am not able to reproduce this phenomenon. This is what I got in a (elevated) CMD session:
(I left out some less relevant information because of the length of it)
Code: Select all
C:\temp>goto 2>compress_me.txt
C:\temp>dir compress_me.txt
Directory of C:\temp
12/08/2019 06:06 PM 0 compress_me.txt
1 File(s) 0 bytes
C:\temp>compact /c compress_me.txt
Compressing files in C:\temp\
compress_me.txt 0 : 0 = 1.0 to 1 [OK]
1 files within 1 directories were compressed.
0 total bytes of data are stored in 0 bytes.
The compression ratio is 1.0 to 1.
C:\temp>dir compress_me.txt
Directory of C:\temp
12/08/2019 06:06 PM 0 compress_me.txt
1 File(s) 0 bytes
C:\temp>fsutil file layout "c:\temp\compress_me.txt"
********* File 0x00b2000000004122 *********
File reference number : 0x00b2000000004122
File attributes : 0x00000820: Archive | Compressed
Allocated Size : 96
Stream : 0x080 ::$DATA
Attributes : 0x00000800: Compressed
Flags : 0x0000000c: Resident | No clusters allocated
Size : 0
Allocated Size : 0
C:\temp>
Especially these lines are of interest:
1 files within 1 directories were compressed.
0 total bytes of data are stored in 0 bytes.
File attributes : 0x00000820: Archive | Compressed
Flags : 0x0000000c: Resident | No clusters allocated