Does Ctrl-L use Everything?

English support forum

Moderators: Hacker, petermad, Stefan2, white

User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Does Ctrl-L use Everything?

Post by *petermad »

Wrong. The result depends on filesystem.
Apparantly not entirely:
Windows XP: https://madsenworld.dk/tcmd/usedspace_wp_ntfs.png
Windows 7: https://madsenworld.dk/tcmd/usedspace2.png
Under Windows 8.1: https://madsenworld.dk/tcmd/usedspace4.png
Windows 10: https://madsenworld.dk/tcmd/usedspace3.png
All instances on NTFS file system - but only Win 8.1 and 10 reports 0 byte space occupied for the test file
Last edited by petermad on 2019-12-08, 17:34 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Does Ctrl-L use Everything?

Post by *NotNull »

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
NotNull
Senior Member
Senior Member
Posts: 298
Joined: 2019-11-25, 20:43 UTC
Location: NL

Re: Does Ctrl-L use Everything?

Post by *NotNull »

petermad wrote: 2019-12-08, 17:17 UTC All instances on NTFS file system - but only Win 8.1 and 10 reports 0 byte space occupied for the test file
I think (can't test and can't remember) that it is primarily that: Windows updated it's code to report size on disk to show the actual state.
I'm sure Windows 7 already saved small files in $MFT.
(MFT is a NTFS filesystem feature)
User avatar
Usher
Power Member
Power Member
Posts: 1726
Joined: 2011-03-11, 10:11 UTC

Re: Does Ctrl-L use Everything?

Post by *Usher »

petermad wrote: 2019-12-08, 17:17 UTC
Wrong. The result depends on filesystem.
All instances on NTFS file system - but only Win 8.1 and 10 reports 0 byte space occupied for the test file
There are different versions of NTFS and NTFS drivers.
Andrzej P. Wozniak
Polish subforum moderator
Post Reply