2018-07-29 19:38:00 +00:00
|
|
|
.. SPDX-License-Identifier: GPL-2.0
|
|
|
|
|
|
|
|
Special inodes
|
|
|
|
--------------
|
|
|
|
|
|
|
|
ext4 reserves some inode for special features, as follows:
|
|
|
|
|
|
|
|
.. list-table::
|
2018-10-03 02:43:40 +00:00
|
|
|
:widths: 6 70
|
2018-07-29 19:38:00 +00:00
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
* - inode Number
|
|
|
|
- Purpose
|
|
|
|
* - 0
|
|
|
|
- Doesn't exist; there is no inode 0.
|
|
|
|
* - 1
|
|
|
|
- List of defective blocks.
|
|
|
|
* - 2
|
|
|
|
- Root directory.
|
|
|
|
* - 3
|
|
|
|
- User quota.
|
|
|
|
* - 4
|
|
|
|
- Group quota.
|
|
|
|
* - 5
|
|
|
|
- Boot loader.
|
|
|
|
* - 6
|
|
|
|
- Undelete directory.
|
|
|
|
* - 7
|
|
|
|
- Reserved group descriptors inode. (“resize inode”)
|
|
|
|
* - 8
|
|
|
|
- Journal inode.
|
|
|
|
* - 9
|
|
|
|
- The “exclude” inode, for snapshots(?)
|
|
|
|
* - 10
|
|
|
|
- Replica inode, used for some non-upstream feature?
|
|
|
|
* - 11
|
2022-05-20 02:22:55 +00:00
|
|
|
- Traditional first non-reserved inode. Usually this is the lost+found directory. See s_first_ino in the superblock.
|
2018-07-29 19:38:00 +00:00
|
|
|
|
2021-08-16 09:57:07 +00:00
|
|
|
Note that there are also some inodes allocated from non-reserved inode numbers
|
|
|
|
for other filesystem features which are not referenced from standard directory
|
|
|
|
hierarchy. These are generally reference from the superblock. They are:
|
|
|
|
|
|
|
|
.. list-table::
|
|
|
|
:widths: 20 50
|
|
|
|
:header-rows: 1
|
|
|
|
|
|
|
|
* - Superblock field
|
|
|
|
- Description
|
|
|
|
|
2022-05-20 02:22:55 +00:00
|
|
|
* - s_lpf_ino
|
2021-08-16 09:57:07 +00:00
|
|
|
- Inode number of lost+found directory.
|
2022-05-20 02:22:55 +00:00
|
|
|
* - s_prj_quota_inum
|
2021-08-16 09:57:07 +00:00
|
|
|
- Inode number of quota file tracking project quotas
|
2022-05-20 02:22:55 +00:00
|
|
|
* - s_orphan_file_inum
|
2021-08-16 09:57:07 +00:00
|
|
|
- Inode number of file tracking orphan inodes.
|