官术网_书友最值得收藏!

The HFS Plus volume

The HFS Plus volume contains a number of internal structures to manage the organization of data. These structures include a header, an alternate header, and five special files: an allocation file, an extents overflow file, a catalog file, an attributes file, and a startup file. Among the five files, three files (the extents overflow file, the catalog file, and the attributes file) use a B-Tree structure. This is a data structure that allows data to be efficiently searched, viewed, modified, or removed. The HFS Plus volume structure is shown in the following diagram:

 

The HFS Plus volume structure

The volume structure is described as follows:

  • Reserved (1024 bytes): This is reserved for bootloader information.
  • Volume Header: This stores volume information, such as the size of allocation blocks, a timestamp of when the volume was created, and metadata about each of the five special files.
  • Allocation File: This file is used to track which allocation blocks are in use by the system. The file format consists of 1 bit for every allocation block. If the bit is set, the block is in use. If it is not set, the block is free.
  • Extents Overflow File: This file records the allocation blocks that are allocated when the file size exceeds eight blocks, which helps in locating the actual data when referred. Bad blocks are also recorded in the file.
  • Catalog File: This file contains information about the hierarchy of files and folders, which is used to locate any file and folder within the volume.
  • Attributes File: This file contains inline data attribute records, fork data attribute records, and extension attribute records.
  • Startup File: This file contains the information needed to assist in booting a system that does not have HFS Plus support.
  • Alternate Volume Header: This is a backup of the volume header, and it's mainly used for disk repairing.
  • Reserved (512 bytes): This is reserved for use by Apple, and it is used during the manufacturing process.

Next, let's look at the APFS filesystem.

主站蜘蛛池模板: 南宁市| 黑龙江省| 平陆县| 汝南县| 龙川县| 双辽市| 德昌县| 怀化市| 巨鹿县| 大丰市| 楚雄市| 乌海市| 出国| 武强县| 和平县| 陈巴尔虎旗| 静安区| 屯昌县| 深水埗区| 绥德县| 东台市| 金秀| 肇州县| 贵港市| 合水县| 河西区| 高淳县| 大田县| 景德镇市| 邵阳县| 惠安县| 山东省| 海伦市| 青冈县| 五寨县| 柏乡县| 武隆县| 镇远县| 彰化市| 拉孜县| 青海省|