po precitani threadu som mal ideu, kde by mohol byt problem.
a to sice, ze vo FAT filesysteme sa pre adresare v ich direntry neuklada dlzka adresara, takze dlzka adresara je dana len dlzkou cluster chainu, ktory je vo FAT a teda je to nasobok velkosti clustra.
tu by mohol byt problem, ked by esxdos pri vytvoreni adresara neinicializoval cely jeho cluster ale by len ulozil dva zaznamy (pre '..' a '.') a este treti (s flagom 'free direntry'), ktorym by zoznam poloziek ukoncil.
a tak som spravil maly test - pripravil som image, ktory by inicialne nemal vsetky byte vynulovane ale povedzme nastavene na 'A'.
na vyrobu takeho image som spravil skript:
Kód:
#!/bin/bash
dd if=/dev/zero bs=16M count=1 | tr '\000' 'A' > test16M.raw
/sbin/mkfs.vfat test16M.raw
raw2hdf -v1.1 test16M.raw test16M.hdf
hdfmonkey put test16M.hdf esxdos086-BETA4.zip.dir/sys/ /
hdfmonkey put test16M.hdf esxdos086-BETA4.zip.dir/bin/ /
hdfmonkey mkdir test16M.hdf /tmp
nabootoval som emulator, a vytvoril v roote adresar YT (.mkdir yt). bol som zvedavy co sa stalo a tak som ani dalej nepokracoval a z modifikovaneho image som vytiahol particiu, aby som ju mohol namountovat v linuxe.
Kód:
dd if=test16M.hdf bs=534 skip=1 of=mod.raw
no a potom uz len:
Kód:
mkdir dir
mount -o loop mod.raw dir
ls -al dir/YT
a bolo to tam:
Kód:
total 51318642
drwxr-xr-x 2 root root 2048 Apr 23 1982 .
drwxr-xr-x 6 root root 16384 Jan 1 1970 ..
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
-r-xr-xr-x 1 root root 1094795585 Oct 1 2012 AAAAAAAA.AAA
nedalo mi to, nejak sa mi nepozdaval pocet tych "fantomovych" zaznamov (48 - to nie je ani jeden cely cluster, ani zvysok clustra po zalozeni '.', '..' a jedneho prazdneho entry) a tak som pozrel do image okato, ze co tam vlastne je:
Kód:
0002c800 2e 20 20 20 20 20 20 20 20 20 20 10 10 10 00 00 |. .....|
0002c810 97 04 00 00 00 00 00 00 97 04 42 00 00 00 00 00 |..........B.....|
0002c820 2e 2e 20 20 20 20 20 20 20 20 20 10 10 10 00 00 |.. .....|
0002c830 97 04 00 00 00 00 00 00 97 04 00 00 00 00 00 00 |................|
0002c840 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c850 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c860 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c870 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c880 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c890 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c8f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c900 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c910 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c920 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c930 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c940 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c950 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c960 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c970 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c980 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c990 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9a0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9b0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9c0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9d0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9e0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002c9f0 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 |................|
0002ca00 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca10 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca20 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca30 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca40 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca50 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca60 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca70 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca80 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002ca90 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002caa0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002cab0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002cac0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002cad0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
0002cae0 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 41 |AAAAAAAAAAAAAAAA|
...
no a tu to uz dalo cele zmysel. esxdos sice inicializuje aj dalsie entries, ale len v prvom sektore celeho clustra, takze pri 2K clustri mi zostali 3 sektory neinicializovane a to je presne 3*16 = 48 suborov.
bolo by fajn taku kartu vyskusat vo windowse, lebo tusim som sa kedysi s Miguelom bavil presne o tomto ukoncovani a tusim vtedy vyplynulo ze windows pri prvom 'free' direntry ukonci prehladavanie adresara (linux zjavne nie)...
chybu zreportujem Miguelovi