NTFS Master File Table (MFT)

[复制链接]
  • TA的每日心情
    开心
    2012-4-25 18:36
  • 签到天数: 1 天

    [LV.1]布衣百姓

    200

    主题

    862

    回帖

    2601

    积分

    Intohard Team

    づ甜甜橙子ぜ

    Rank: 7Rank: 7Rank: 7

    积分
    2601
    发表于 2007-11-3 16:06:58 | 显示全部楼层 |阅读模式
    Each file on an NTFS volume is represented by a record in a special file called the master file table (MFT). NTFS reserves the first 16 records of the table for special information. The first record of this table describes the master file table itself, followed by a MFT mirror record. If the first MFT record is corrupted, NTFS reads the second record to find the MFT mirror file, whose first record is identical to the first record of the MFT. The locations of the data segments for both the MFT and MFT mirror file are recorded in the boot sector. A duplicate of the boot sector is located at the logical center of the disk.

    The third record of the MFT is the log file, used for file recovery. The seventeenth and following records of the master file table are for each file and directory (also viewed as a file by NTFS) on the volume.

    Figure provides a simplified illustration of the MFT structure:

    Figure 5-2 MFT Structure

    NTFS-MFT-structure.gif

    The master file table allocates a certain amount of space for each file record. The attributes of a file are written to the allocated space in the MFT. Small files and directories (typically 1500 bytes or smaller), such as the file illustrated in next figure, can entirely be contained within the master file table record.

    Figure 5-2 MFT Record for a Small File or Directory:

    NTFS-MFT-small-file-structure.gif

    This design makes file access very fast. Consider, for ex[wiki]amp[/wiki]le, the [wiki]FAT[/wiki] file system, which uses a file allocation table to list the names and addresses of each file. FAT directory entries contain an index into the file allocation table. When you want to view a file, FAT first reads the file allocation table and assures that it exists. Then FAT retrieves the file by searching the chain of allocation units assigned to the file. With NTFS, as soon as you look up the file, it's there for you to use.

    Directory records are housed within the master file table just like file records. Instead of data, directories contain index information. Small directory records reside entirely within the MFT structure. Large directories are organized into B-trees, having records with pointers to external clusters containing directory entries that could not be contained within the MFT structure.
  • TA的每日心情
    慵懒
    2019-12-2 13:47
  • 签到天数: 3 天

    [LV.2]九品芝麻官

    3

    主题

    375

    回帖

    763

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    763
    发表于 2008-5-20 12:07:38 | 显示全部楼层
    看不懂,能不能翻译啊?
  • TA的每日心情
    奋斗
    2021-12-12 18:49
  • 签到天数: 1 天

    [LV.1]布衣百姓

    17

    主题

    183

    回帖

    1272

    积分

    [INTOHARD]营长

    Rank: 6Rank: 6

    积分
    1272
    发表于 2008-5-23 08:50:07 | 显示全部楼层
    Thank you for sharing.I hope you could give us more skills about NTFS or Ext3,and so on. Thank alot!(38:

    该用户从未签到

    42

    主题

    1528

    回帖

    2297

    积分

    [INTOHARD]营长

    Rank: 6Rank: 6

    积分
    2297
    发表于 2008-5-23 08:59:16 | 显示全部楼层
    外国字,看不懂!!![s:16] [s:16] [s:16] (38: (38: (38:
  • TA的每日心情
    开心
    2022-4-20 09:44
  • 签到天数: 23 天

    [LV.4]七品知县

    11

    主题

    319

    回帖

    671

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    671
    发表于 2008-6-27 13:43:41 | 显示全部楼层
    让我学习的好东西,

    该用户从未签到

    0

    主题

    190

    回帖

    310

    积分

    [INTOHARD]排长

    Rank: 3Rank: 3

    积分
    310
    发表于 2008-7-14 14:29:12 | 显示全部楼层
    [s:18] [s:18] [s:18]
  • TA的每日心情
    慵懒
    2019-12-2 13:47
  • 签到天数: 3 天

    [LV.2]九品芝麻官

    3

    主题

    375

    回帖

    763

    积分

    [INTOHARD]连长

    Rank: 4

    积分
    763
    发表于 2008-8-11 14:02:54 | 显示全部楼层
    有没有中文的啊?看不懂啊

    该用户从未签到

    0

    主题

    43

    回帖

    33

    积分

    [INTOHARD]工兵

    Rank: 1

    积分
    33
    发表于 2009-2-22 08:21:22 | 显示全部楼层
    very good, thanks(38:

    该用户从未签到

    15

    主题

    674

    回帖

    9176

    积分

    [INTOHARD]团长

    浸淫

    Rank: 8Rank: 8

    积分
    9176
    发表于 2009-2-22 10:02:44 | 显示全部楼层
    i'm sorry!

    my English is poor!!!!

    该用户从未签到

    4

    主题

    246

    回帖

    193

    积分

    [INTOHARD]班长

    Rank: 2

    积分
    193
    发表于 2009-7-1 16:11:41 | 显示全部楼层
    新手刚来报到
    您需要登录后才可以回帖 登录 | 立即注册

    本版积分规则

    快速回复 返回顶部 返回列表