summaryrefslogtreecommitdiff
path: root/Documentation/filesystems/ext4/ondisk/eainode.rst
diff options
context:
space:
mode:
authorDarrick J. Wong <darrick.wong@oracle.com>2018-07-29 22:38:00 +0300
committerTheodore Ts'o <tytso@mit.edu>2018-07-29 22:38:00 +0300
commitc09f3bac6d8c820b4b4ff0ffcff47e3a68b04e54 (patch)
tree811e969f7b4cbbaee525a0294075f06d7829ef42 /Documentation/filesystems/ext4/ondisk/eainode.rst
parentb2e60723c1c14c7c9b79c82bb86d8e2a81051b5e (diff)
downloadlinux-c09f3bac6d8c820b4b4ff0ffcff47e3a68b04e54.tar.xz
ext4: import high level design chapter from wiki page
Import the chapter about high level design from the on-disk format wiki page into the kernel documentation. Signed-off-by: Darrick J. Wong <darrick.wong@oracle.com> Signed-off-by: Theodore Ts'o <tytso@mit.edu>
Diffstat (limited to 'Documentation/filesystems/ext4/ondisk/eainode.rst')
-rw-r--r--Documentation/filesystems/ext4/ondisk/eainode.rst18
1 files changed, 18 insertions, 0 deletions
diff --git a/Documentation/filesystems/ext4/ondisk/eainode.rst b/Documentation/filesystems/ext4/ondisk/eainode.rst
new file mode 100644
index 000000000000..ecc0d01a0a72
--- /dev/null
+++ b/Documentation/filesystems/ext4/ondisk/eainode.rst
@@ -0,0 +1,18 @@
+.. 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.