<< Chapter < Page Chapter >> Page >

Master file table (mft)

Clusters are the key element to allocation:

  • Logically, the disk consists of allocation units called clusters.
  • A cluster is a power-of-two multiple of the physical disk block size. The cluster size is set when the disk is formatted. A small clusterprovides a finer granularity of allocation, but may require more space to describe the file and more separate operations to transfer data to or frommemory.
  • The free list is a bitmap, each of whose bits describe one cluster.
  • Clusters on the disk are numbered starting from zero to the maximum number of clusters (minus one). These numbers are called logical clusternumbers (LCN) and are used to name blocks (clusters) on disk.

The MFT is the major, and in some ways, the only data structure on disk:

  • All files, and therefore all objects stored on disk are described by the MFT.
  • All files are logically stored in the MFT and, for small files are physically within the bounds of the MFT. In this sense, the MFT is the filesystem.
  • The MFT logically can be described as a table with one row per file.
  • The first rows in the table described important configuration files, including files for the MFT itself.

Mft entries

As stated previously, each row or entry in the MFT (called a record) describes a file and logically contains the file. In the caseof small files, the entry actually contains the contents of the file.

Each entry is consists of (attribute, value) pairs. While the conceptual design of NTFS is such that this set of pairs is extensibleto include user-defined attributes, current versions of NTFS have a fixed set. The main attributes are:

  • Standard information: This attribute includes the information that was standard in the MS-DOS world:
    • read/write permissions,
    • creation time,
    • last modification time,
    • count of how many directories point to this file (hard link count.
  • File Name: This attribute describes the file's name in the Unicode character set. Multiple file names are possible, such as when:
    • the file has multiple links, or
    • the file has an MS-DOS short name.
  • Security Descriptor: This attribute lists which user owns the file and which users can access it (and how they can access it).
  • Data: This attribute either contains the actual file data in the case of a small file or points to the data (or points to the objects that pointto the data) in the case of larger files.

For small files, this design is extremely efficient. By looking no further than the MFT entry, you have the completecontents of the file.

However, the Data field gets interesting when the data contained in the file is larger than an MFT entry. When dealing with largedata, the Data attribute contains pointers to the data, rather than the data itself.

  • The pointers to data are actually pointers to sequences of logical clusters on the disk.
  • Each sequence is identified by three parts:
    • starting cluster in the file, called the virtual cluster number (VCN),
    • starting logical cluster (LCN) of the sequence on disk,
    • length, counted as the number of clusters.
  • The run of clusters is called an extent, following the terminology developed by IBM in the 1960's.
  • NTFS allocates new extents as necessary. When there is no more space left in the MFT entry, then another MFT entry is allocated. This design iseffectively a list of extents, rather than the Unix or DEMOS tree of extents.

Questions & Answers

what are components of cells
ofosola Reply
twugzfisfjxxkvdsifgfuy7 it
Sami
58214993
Sami
what is a salt
John
the difference between male and female reproduction
John
what is computed
IBRAHIM Reply
what is biology
IBRAHIM
what is the full meaning of biology
IBRAHIM
what is biology
Jeneba
what is cell
Kuot
425844168
Sami
what is biology
Inenevwo
what is cytoplasm
Emmanuel Reply
structure of an animal cell
Arrey Reply
what happens when the eustachian tube is blocked
Puseletso Reply
what's atoms
Achol Reply
discuss how the following factors such as predation risk, competition and habitat structure influence animal's foraging behavior in essay form
Burnet Reply
cell?
Kuot
location of cervical vertebra
KENNEDY Reply
What are acid
Sheriff Reply
define biology infour way
Happiness Reply
What are types of cell
Nansoh Reply
how can I get this book
Gatyin Reply
what is lump
Chineye Reply
what is cell
Maluak Reply
what is biology
Maluak
what is vertibrate
Jeneba
what's cornea?
Majak Reply
what are cell
Achol
Got questions? Join the online conversation and get instant answers!
Jobilize.com Reply

Get Jobilize Job Search Mobile App in your pocket Now!

Get it on Google Play Download on the App Store Now




Source:  OpenStax, Operating systems. OpenStax CNX. Aug 13, 2009 Download for free at http://cnx.org/content/col10785/1.2
Google Play and the Google Play logo are trademarks of Google Inc.

Notification Switch

Would you like to follow the 'Operating systems' conversation and receive update notifications?

Ask