| TIP: Click on subject to list as thread! | ANSI |
| echo: | |
|---|---|
| to: | |
| from: | |
| date: | |
| subject: | Cluster algorithm |
Some senseless babbling from George White to Mike Ruskai
on 27 Jan 96 22:21:02 about Cluster algorithm...
MR>Rough cluster size is drive size divided by 65536
MR>Convert rough cluster size to binary
MR>Count number of digits in binary number (starting with first '1')
MR>Actual cluster size is 2 raised to the power of the number of digits above
MR>Is there anything wrong with this *other* than it not taking into account th
MR>12-bit FAT of a <16MB drive?
GW> Yes. The minimum cluster size on 16-bit FAT is 4 sectors (2048 bytes)
GW> (another Microsoft odditity :-( ).
OK, then I did the correct thing (anything between 16MB and 64MB just gets
2048 bytes, below 16MB is 4096 bytes, and everything else gets the formula
applied). A lot of people have responded that I should just check the boot
sector, or call an API, but you're the only one so far that actually gave
me the answer I was looking for :) It's hard to check a boot sector in
REXX, and impossible to check and API for a drive that isn't formatted FAT.
Mike [Team OS/2]
mruskai{at}microfone.net
... I used to have a life, but I liked mail-reading so much better.
~~~ ReneWave v1.01+
--- RG 10-5 Exp/GE 1.02+
* Origin: The Licking Factory, OS/2 in NJ! (908)815-3146 (1:107/634)SEEN-BY: 50/99 270/101 620/243 711/401 409 410 413 430 808 809 934 955 SEEN-BY: 712/407 515 517 628 713/888 800/1 7877/2809 @PATH: 107/634 677 696 411 270/101 712/515 711/808 809 934 |
|
| SOURCE: echomail via fidonet.ozzmosis.com | |
Email questions or comments to sysop@ipingthereforeiam.com
All parts of this website painstakingly hand-crafted in the U.S.A.!
IPTIA BBS/MUD/Terminal/Game Server List, © 2025 IPTIA Consulting™.