요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
1
.. SPDX-License-Identifier: GPL-2.0
3
Special inodes
4
--------------
6
ext4 reserves some inode for special features, as follows:
8
.. list-table::
9
:widths: 6 70
10
:header-rows: 1
12
* - inode Number
13
- Purpose
14
* - 0
15
- Doesn't exist; there is no inode 0.
16
* - 1
17
- List of defective blocks.
18
* - 2
19
- Root directory.
20
* - 3
21
- User quota.
22
* - 4
23
- Group quota.
24
* - 5
25
- Boot loader.
26
* - 6
27
- Undelete directory.
28
* - 7
29
- Reserved group descriptors inode. (“resize inode”)
30
* - 8
31
- Journal inode.
32
* - 9
33
- The “exclude” inode, for snapshots(?)
34
* - 10
35
- Replica inode, used for some non-upstream feature?
36
* - 11
37
- Traditional first non-reserved inode. Usually this is the lost+found directory. See s_first_ino in the superblock.
39
Note that there are also some inodes allocated from non-reserved inode numbers
40
for other filesystem features which are not referenced from standard directory
41
hierarchy. These are generally reference from the superblock. They are:
43
.. list-table::
44
:widths: 20 50
45
:header-rows: 1
47
* - Superblock field
48
- Description
50
* - s_lpf_ino
51
- Inode number of lost+found directory.
52
* - s_prj_quota_inum
53
- Inode number of quota file tracking project quotas
54
* - s_orphan_file_inum
55
- Inode number of file tracking orphan inodes.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
예약 inode 번호
1-35ext4는 여러 특수 기능을 위해 낮은 inode number를 예약합니다. inode 0은 존재하지 않으며 inode 11이 전통적으로 첫 non-reserved inode입니다.
Inode용도
`0`존재하지 않음
`1`defective block 목록
`2`root directory
`3`user quota
`4`group quota
`5`boot loader
`6`undelete directory
`7`reserved group descriptor inode (`resize inode`)
`8`journal inode
`9`snapshot용 `exclude` inode로 추정
`10`일부 non-upstream 기능의 replica inode로 추정
`11`전통적인 첫 non-reserved inode; 보통 `lost+found`, superblock의 `s_first_ino` 참조
고정 inode number와 용도입니다.
.. SPDX-License-Identifier: GPL-2.0
Special inodes
--------------
ext4 reserves some inode for special features, as follows:
.. list-table::
:widths: 6 70
: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?
디렉터리에 없는 특수 inode
36-55일부 filesystem 기능은 예약 범위 밖에서 inode를 할당하지만 표준 directory hierarchy에서는 참조하지 않습니다. 이 inode들은 보통 superblock field가 직접 가리킵니다.
Superblock field설명
`s_lpf_ino``lost+found` directory의 inode number
`s_prj_quota_inum`project quota를 추적하는 quota file의 inode number
`s_orphan_file_inum`orphan inode를 추적하는 file의 inode number
일반 directory hierarchy 밖의 기능별 inode입니다.
* - 11
- Traditional first non-reserved inode. Usually this is the lost+found directory. See s_first_ino in the superblock.
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
* - s_lpf_ino
- Inode number of lost+found directory.
* - s_prj_quota_inum
- Inode number of quota file tracking project quotas
* - s_orphan_file_inum
- Inode number of file tracking orphan inodes.
요약·해설
special_inodes.rst:1-55inode 1~10은 block list, root, quota, boot, resize, journal 등 고정 용도로 예약되고 inode 11이 전통적인 첫 일반 inode입니다.
문서의 핵심 관계를 짧게 정리합니다.