FATÎļþϵͳÔÀí(Èý)
4.3 FAT±íºÍÊý¾ÝµÄ´æ´¢ÔÔò¡£
FAT±í(File Allocation Table Îļþ·ÖÅä±í)£¬ÊÇMicrosoftÔÚFATÎļþϵͳÖÐÓÃÓÚ´ÅÅÌÊý¾Ý(Îļþ)Ë÷ÒýºÍ¶¨Î»Òý½øµÄÒ»ÖÖÁ´Ê½½á¹¹¡£¼ÙÈç°Ñ´ÅÅ̱È×÷Ò»±¾Ê飬FAT±í¿ÉÒÔÈÏΪÏ൱ÓÚÊéÖеÄĿ¼£¬¶øÎļþ¾ÍÊǸ÷¸öÕ½ڵÄÄÚÈÝ¡£µ«FAT±íµÄ±íʾ·½·¨È´ÓëĿ¼ÓкܴóµÄ²»Í¬¡£ ÔÚFATÎļþϵͳÖУ¬ÎļþµÄ´æ´¢ÒÀÕÕFAT±íÖƶ¨µÄ´ØÁ´Ê½Êý¾Ý½á¹¹À´½øÐС£Í¬Ê±£¬FATÎļþϵͳ½«×éÖ¯Êý¾ÝʱʹÓõÄĿ¼Ҳ³éÏóΪÎļþ£¬ÒÔ¼ò»¯¶ÔÊý¾ÝµÄ¹ÜÀí¡£
µ¥»÷´Ë´¦²é¿´PDF°æÈ«ÎÄ ¡ï´æ´¢¹ý³Ì¼ÙÏ룺 ÎÒÃÇÄ£Äâ¶ÔÒ»¸ö·ÖÇø´æ´¢Êý¾ÝµÄ¹ý³ÌÀ´ËµÃ÷FATÎļþϵͳÖÐÊý¾ÝµÄ´æ´¢ÔÔò¡£ ¼Ù¶¨ÏÖÔÚÓÐÒ»¸ö¿ÕµÄÍêȫûÓдæ·ÅÊý¾ÝµÄ´ÅÅÌ£¬´óСΪ100KB£¬ÎÒÃǽ«ÆäÏëÏóΪÏßÐεĿռäµØÖ·¡£ÎªÁË´æ´¢¹ÜÀíÉϵıãÀû£¬ÎÒÃÇÈËΪµÄ½«Õâ100KBµÄ¿Õ¼ä¾ù·Ö³É100·Ý£¬Ã¿·Ý1KB¡£ÎÒÃÇÀ´ÒÀ´Î´æ´¢ÕâÑù¼¸¸öÎļþ£ºA.TXT(´óС10KB),B.TXT(´óС53.6KB)£¬C.TXT(´óС20.5KB)¡£ ×îÆðÂëÄܹ»Ïëµ½£¬ÎÒÃÇ¿ÉÒÔ˳ÐòµÄÔÚÕâ100KB¿Õ¼äÖдæ·ÅÕâ3¸öÎļþ¡£Í¬Ê±²»ÒªÍüÁË£¬ÎÒÃÇ»¹Òª¼ÇÏÂËûÃǵĴóСºÍ¿ªÊ¼µÄλÖã¬ÕâÑùÏ´ÎÒªÓÃʱ²ÅÄÜÕҵĵ½£¬Õâ¾ÍÏñÊÇĿ¼¡£ÎªÁ˱ãÓÚ²éÕÒ£¬ÎÒÃǼٶ¨ÓõÚ1KµÄ¿Õ¼äÀ´´æ´¢ËûÃǵÄÌØÕ÷(ÊôÐÔ)¡£»¹ÓУ¬ÎÒÃÇÉè¼ÆµÄ´æ´¢µ¥Î»ÊÇ1KB£¬ËùÒÔ£¬A.TXTÎÒÃÇÐèÒª10¸ö´æ´¢µ¥Î»(ΪÁË˵Ã÷·½±ã£¬ÎÒÃÇ°Ñ´æ´¢µ¥Î»½Ð×ö¡°´Ø¡±°É¡£Ò²ÄÜÉÙ´òµã×Ö£¬ºÇºÇ¡£)£¬B.TXTÐèÒª54¸ö´Ø£¬C.TXTÐèÒª21¸ö´Ø¡£¿ÉÄÜÓÐÈË»á˵B.TXTºÍC.TXT²»ÊǸ÷×ÔÀË·ÑÁ˲»µ½1´ØµÄ¿Õ¼äÂ𣿸ÉÂï²»ÈÃËûÃǽô°¤×Å£¬²»ÊÇÊ¡µØ·½Âð£¿ÎҵĻشðÊÇ£¬Èç¹û°´ÕÕÕâÑùµÄ·½Ê½´æ´¢£¬Ä¿Â¼ÖÐÔ±¾Ö»ÐèÒª¼ÇÏ´غţ¬ÏÖÔÚ»¹ÐèÒª¼ÇÏ´ØÄÚµÄÆ«ÒÆ£¬ÕâÑù»áÔö¼ÓĿ¼µÄ´æ´¢Á¿£¬¶øÇÒ´æȡûÓÐÁ˹æÔò£¬¶ÁÈ¡Ò²²»Ì«·½±ã£¬Êǵò»³¥Ê§µÄ¡£ ¸ù¾ÝÉÏÃæËù˵µÄ˼Ï룬ÎÒÃÇÉè¼ÆÁËÕâÑùµÄͼ4.3.1ËùʾµÄ´æ´¢·½Ê½¡£
ÎÒÃÇÔÙ¿¼ÂÇÈçºÎÀ´Ð´ÕâÈý¸öÎļþµÄĿ¼¡£¶ÔÓÚÿ¸öÎļþ¶øÑÔ£¬Ò»¶¨Òª¼Ç¼µÄÓУºÎļþÃû£¬¿ªÊ¼´Ø£¬´óС£¬´´½¨ÈÕÆÚ¡¢Ê±¼ä£¬ÐÞ¸ÄÈÕÆÚ¡¢Ê±¼ä£¬ÎļþµÄ¶ÁдÊôÐԵȡ£ÕâÀï´óСÄܲ»ÄÜÓýáÊø´ØÀ´¼ÆËãÄØ£¿Ò»¶¨²»ÄÜ£¬ÒòΪÎļþµÄ´óС²»Ò»¶¨¾ÍÊÇÕûÊý¸ö´ØµÄ´óС£¬·ñÔòµÄ»°ÏñB.TXTµÄÄÚÈݾÍÊÇ54KBµÄÄÚÈÝÁË£¬ÉÙÁ˹ÌÈ»²»ÐУ¬¿É¶àÁËÒ²ÊDz»Ðеġ£ÄÇôÎÒÃÇÔõô¼Ç¼ÄØ£¿¿ÉÒÔÏëÏóһϡ£ÎªÁ˹ÜÀíÉϵķ½±ã£¬ÎÒÃÇÓÃÊý¾Ý¿âµÄ¹ÜÀí·½Ê½À´¹ÜÀíÎÒÃǵÄĿ¼¡£ÓÚÊÇÎÒ°Ñ1KBÔÙ·Ö³É10·Ý£¬¼Ù¶¨¿ªÊ¼´ØºÅΪ0£¬¶¨Òåÿ·Ý100BµÄ¸÷¸öλÖõĴú±íº¬ÒåÈçͼ4.3.2
ÕâÑùÉè¼ÆµÄ½á¹¹¾ø¶Ô¿ÉÒÔ¶ÔÎļþ½øÐÐÕýÈ·µÄ¶ÁдÁË¡£½Ó×ÅÈÃÎÒÃÇÉè¼ÆµÄÎļþϵͳ¹¤×÷°É¡£ÏȸĶ¯¸öÎļþ£¬±ÈÈçA.TXT£¬Ôö¼ÓµãÄÚÈÝ°É£¡ß×£¿Ôö¼ÓºóÍùÄÄÀï·Åѽ£¬ËäÈ»´æ´¢¿éµÄºóÃæÓкܶà¿Õ¼ä£¬µ«½ôËæÆäºóB.TXTµÄÊý¾Ý»¹¶¥×ÅÄØ£¿ÒªÊÇ°ÑA.TXTÒƵ½ºó±ßÌ«ÀË·Ñ´¦Àí×ÊÔ´£¬¶øÇÒÒ²²»Ò»¶¨½â¾öÎÊÌâ¡£Õâ¸öÎÊÌâ¿´À´ÔÝʱ½â¾ö²»ÁË¡£ ÄÇÎÒÃÇ»»¸ö²Ù×÷£¬°ÑB.txtɾÁË£¬b.txtµÄ¿Õ¼äËæÖ®ÊÍ·Å¡£Õâʱºò¿Õ¼äÈçͼ4.3.3£¬Ä¿Â¼Èçͼ4.3.4
Õâ¸ö²Ù×÷¿´À´»¹¿ÉÒÔ£¬ÎÒÃǽÓ×Å×ö£¬ÔÚ´æÈëÒ»¸öÎļþD.txt(´óСΪ60.3KB),×ܹ²100´ØµÄ¿Õ¼äÖ»ÓÃÁË31´Ø£¬»¹ÓÐ68´ØÊ£Ó࣬°´ËµÄÜ·ÅÏ¡£¿ÉÊÇ£¿ÍùÄÇÀï·ÅÄØ£¿Ã»ÓÐ61¸öÁ¬ÐøµÄ¿Õ¼äÁË£¬Ä¿Â¼ÐÐû°ì·¨Ð´ÁË£¬¿´À´ÎÞÁ¬Ðø¿é´æ´¢ÔÝʱҲ²»ÐС£ ÄãÒ»¶¨Äܹ»Ïëµ½ÎÒÃÇ¿ÉÒÔÔÚÁ¬Ðø¿Õ¼ä²»¹»»òÔö¼ÓÎļþ³¤¶ÈµÄʱºòתÒÆÓ°ÏìÎÒÃDzÙ×÷µÄÆäËûÎļþ£¬´Ó¶øÌÚ³ö¿Õ¼äÀ´£¬µ«ÎÒÒªÎÊÄ㣬ÄDz»ÊdzÉÌìɶҲ²»Òª¸ÉÁË£¬¾ÍÊǵ¹ÌÚ¶«Î÷ÁËÂð£¿
¿´À´ÎÒÃÇÉè¼ÆµÄÎļþϵͳÓÐÖÂÃüµÄ©¶´£¬Ôõô½â¾öÄØ£¿¡£¡£¡£¡£ ±¾ÐÂÎŹ² 2Ò³,µ±Ç°ÔÚµÚ 1Ò³ 1 2 |