요약·해설과 원문, 전문 번역을 서로 분리했습니다. API 이름, symbol, source path는 원문 표기를 사용합니다.
1. 요약·해설
원문의 핵심 논리와 kernel programming 관점의 보충 설명입니다. 아래의 전문 번역과는 별도로 작성했습니다.
2. 영어 원문 전체
번역 기준이 된 Linux v6.18.37 원문입니다. 줄 번호는 이 버전의 파일 좌표입니다.
원문 전체 펼치기
.. SPDX-License-Identifier: GPL-2.0
Large Extended Attribute Values
-------------------------------
To enable ext4 to store extended attribute values that do not fit in the
inode or in the single extended attribute block attached to an inode,
the EA_INODE feature allows us to store the value in the data blocks of
a regular file inode. This “EA inode” is linked only from the extended
attribute name index and must not appear in a directory entry. The
inode's i_atime field is used to store a checksum of the xattr value;
and i_ctime/i_version store a 64-bit reference count, which enables
sharing of large xattr values between multiple owning inodes. For
backward compatibility with older versions of this feature, the
i_mtime/i_generation *may* store a back-reference to the inode number
and i_generation of the **one** owning inode (in cases where the EA
inode is not referenced by multiple inodes) to verify that the EA inode
is the correct one being accessed.
3. 한국어 전문 번역
영어 원문의 문단 순서와 의미를 유지한 전체 번역입니다. 코드, 함수명, symbol과 URL은 원문 표기를 유지합니다.
큰 확장 속성 값
1-18inode 내부나 inode에 연결된 단일 확장 속성 블록에 들어가지 않는 큰 확장 속성 값을 ext4에 저장하려면 `EA_INODE` 기능을 사용합니다. 이 기능은 일반 파일 inode의 데이터 블록에 확장 속성 값을 저장합니다.
이 `EA inode`는 확장 속성 이름 인덱스에서만 연결되며 디렉터리 엔트리에는 나타나면 안 됩니다.
EA inode의 `i_atime` 필드는 xattr 값의 체크섬을 저장합니다. `i_ctime`과 `i_version`은 64비트 참조 횟수를 저장하므로, 여러 소유 inode가 같은 큰 xattr 값을 공유할 수 있습니다.
이 기능의 이전 버전과 호환하기 위해 `i_mtime`과 `i_generation`은 하나의 소유 inode에 대한 역참조를 저장할 수도 있습니다. EA inode를 여러 inode가 참조하지 않는 경우에만 소유 inode 번호와 그 inode의 `i_generation`을 기록하여 접근 중인 EA inode가 올바른 객체인지 검증합니다.
큰 xattr 값을 별도 inode에 저장할 때 기존 inode 필드에 부여되는 의미입니다.
.. SPDX-License-Identifier: GPL-2.0
Large Extended Attribute Values
-------------------------------
To enable ext4 to store extended attribute values that do not fit in the
inode or in the single extended attribute block attached to an inode,
the EA_INODE feature allows us to store the value in the data blocks of
a regular file inode. This “EA inode” is linked only from the extended
attribute name index and must not appear in a directory entry. The
inode's i_atime field is used to store a checksum of the xattr value;
and i_ctime/i_version store a 64-bit reference count, which enables
sharing of large xattr values between multiple owning inodes. For
backward compatibility with older versions of this feature, the
i_mtime/i_generation *may* store a back-reference to the inode number
and i_generation of the **one** owning inode (in cases where the EA
inode is not referenced by multiple inodes) to verify that the EA inode
is the correct one being accessed.
요약·해설
eainode.rst:1-18큰 xattr 값은 디렉터리에 노출되지 않는 EA inode의 데이터 블록에 저장되며, 기존 시간 필드가 체크섬과 참조 횟수 저장에 재사용됩니다.
문서의 핵심 관계를 짧게 정리합니다.