Not really a problem; just kind of a question...

May 24, 2010
Northlake, Il
I was curious about how much space directories/directory entries used on an NTFS drive (because I wanted to estimate the amount of space truly available on a flash drive; but it turns out that the flash drive was not formatted with the NTFS files system so the following tests turned out to be irrelevant). So I checked the amount of used/free space on an NTFS volume, recorded the values, allocated a new directory, checked the values again, and they were exactly the same as they had been before I had created the directory. So I CD'd into the new directory, created a 1-byte file, and checked the used/free space on the volume yet again, and they were still exactly the same. So I created a relatively small number of 1-byte files in that directory, and checked the used/free space still again, and they were still exactly the same. Well, this surprised me quite a bit until I remembered that small files and directories in Windows NT and its successors (such as Windows XP and Windows 7) are placed directly in the Master File Table, which has a fixed size to start (although it can "grow", but, somewhat ironically, in Windows NTFS file systems, at least prior to Windows 7 (which I don't know about), the Master File Table can't shrink). Well, the question is this: Why does the @FileSize[...,...,a] function, when used for small files, report the cluster size for the volume when that has no relevancy at all for small (such as 1-byte) files?<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p>
Similar threads
Thread starter Title Forum Replies Date Do you really have to be connected to the Internet to register? Support 1
M An issue I really don't understand and is too long and detailed for this "Title" line... Support 16
gschizas Minor (really minor) registration issue Support 0
Dick Johnson Weird Color Problem Support 8 Problem with 27.15 Support 2
M Problem with VSDevCmd.bat in VS 16.7.3 Support 0
R Problem with @INT[ value] in V26 Support 9
M Selecting test "off by one" problem in Take command Support 4
Alpengreis UTF-8 problem in TCC related to Python Support 7
K_Meinhard Small problem in german IDE 26 Support 3
B Problem with color in nested shells Support 1
Joe Caverly Problem creating and switching to a DESKTOP Support 9
vefatica Another popup problem Support 10
Alpengreis ffind dialog (/W) problem Support 4
Alpengreis [TCMD v25.00.24] Small space problem with the DE translation in Prefs-GUI Support 1
Alpengreis [TCMD v25.00.24] Problem with copy and paste and the # char via mouse in TCC Support 6
A Problem with functions @int @decimal and identifying Powershell as a shell. Support 12
B IF command problem in tcexit.btm Support 9 Problem at Startup of TCC Support 3
P Problem with SFTP copies Support 7
P Problem with FTP copies Support 10
Jay Sage Problem with Context Menu Copy+Paste+Run Key Assignment Support 7
R Problem with %_do_loop in nested do loops Support 2 New Problem with later Windows 10 Support 10
Peter Murschall A little problem with LEAVE and COMMENT Support 5
M Handling of %~I problem Support 4
WinLanEm FOR problem Support 18
K Problem With SCRPUT /u Support 3
vefatica What's TCMD's problem with ^e[0m? Support 13
Peter Murschall IDE: RTL with non-English resources-problem is back in Build 28 Support 4
rps Regex problem: \xnn not recognized as a hex character Support 0
rps PRIORITY LOW problem Support 1
old coot Regex problem: \xnn not recognized as a hex character Support 12
vefatica Another problem with build 22. Support 3
Alpengreis [23.x] Download-Problem Support 2
S Problem with " Support 3
C Problem navigating forums Support 11
x13 Problem listing repository files using DIR http(s)://... Support 8
Joe Caverly Problem with TEE in v22 Support 2
Alpengreis Problem with thousands delimiter and colors Support 17
M Take Command 18, migrating to another machine, license problem. Support 1
B TCC 21.01.50 Problem with ALIAS /r and SET /r Support 2
rps How to? @search problem Support 2
WinLanEm @SELECT problem Support 6
T Fixed Problem with use of Batch parameters in the IDE Support 1
Oz Solomon Problem with "list" Support 14
S V21.24 theme problem Support 2
Alpengreis Problem if command prompt is not legacy Support 4
Alpengreis TCMD.INI: The "super hidden" problem ... Support 6
G Odd problem - screen brightness Support 4

Similar threads