<< 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 is mutation
Janga Reply
what is a cell
Sifune Reply
how is urine form
Sifune
what is antagonism?
mahase Reply
classification of plants, gymnosperm features.
Linsy Reply
what is the features of gymnosperm
Linsy
how many types of solid did we have
Samuel Reply
what is an ionic bond
Samuel
What is Atoms
Daprince Reply
what is fallopian tube
Merolyn
what is bladder
Merolyn
what's bulbourethral gland
Eduek Reply
urine is formed in the nephron of the renal medulla in the kidney. It starts from filtration, then selective reabsorption and finally secretion
onuoha Reply
State the evolution relation and relevance between endoplasmic reticulum and cytoskeleton as it relates to cell.
Jeremiah
what is heart
Konadu Reply
how is urine formed in human
Konadu
how is urine formed in human
Rahma
what is the diference between a cavity and a canal
Pelagie Reply
what is the causative agent of malaria
Diamond
malaria is caused by an insect called mosquito.
Naomi
Malaria is cause by female anopheles mosquito
Isaac
Malaria is caused by plasmodium Female anopheles mosquitoe is d carrier
Olalekan
a canal is more needed in a root but a cavity is a bad effect
Commander
what are pathogens
Don Reply
In biology, a pathogen (Greek: πάθος pathos "suffering", "passion" and -γενής -genēs "producer of") in the oldest and broadest sense, is anything that can produce disease. A pathogen may also be referred to as an infectious agent, or simply a germ. The term pathogen came into use in the 1880s.[1][2
Zainab
A virus
Commander
Definition of respiration
Muhsin Reply
respiration is the process in which we breath in oxygen and breath out carbon dioxide
Achor
how are lungs work
Commander
where does digestion begins
Achiri Reply
in the mouth
EZEKIEL
what are the functions of follicle stimulating harmones?
Rashima Reply
stimulates the follicle to release the mature ovum into the oviduct
Davonte
what are the functions of Endocrine and pituitary gland
Chinaza
endocrine secrete hormone and regulate body process
Achor
while pituitary gland is an example of endocrine system and it's found in the Brain
Achor
what's biology?
Egbodo Reply
Biology is the study of living organisms, divided into many specialized field that cover their morphology, physiology,anatomy, behaviour,origin and distribution.
Lisah
biology is the study of life.
Alfreda
Biology is the study of how living organisms live and survive in a specific environment
Sifune
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