Skip to content

Commit ce7e8a6

Browse files
tomvierjahntytso
authored andcommitted
Documentation: ext4: Add fields to ext4_super_block documentation
Documentation and implementation of the ext4 super block have slightly diverged: Padding has been removed in order to make room for new fields that are still missing in the documentation. Add the new fields s_encryption_level, s_first_error_errorcode, s_last_error_errorcode to the documentation of the ext4 super block. Fixes: f542fbe ("ext4 crypto: reserve codepoints used by the ext4 encryption feature") Fixes: 878520a ("ext4: save the error code which triggered an ext4_error() in the superblock") Signed-off-by: Tom Vierjahn <tom.vierjahn@acm.org> Reviewed-by: Ojaswin Mujoo <ojaswin@linux.ibm.com> Link: https://patch.msgid.link/20250324221004.5268-1-tom.vierjahn@acm.org Signed-off-by: Theodore Ts'o <tytso@mit.edu>
1 parent 642335f commit ce7e8a6

File tree

1 file changed

+14
-6
lines changed

1 file changed

+14
-6
lines changed

Documentation/filesystems/ext4/super.rst

Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -328,9 +328,13 @@ The ext4 superblock is laid out as follows in
328328
- s_checksum_type
329329
- Metadata checksum algorithm type. The only valid value is 1 (crc32c).
330330
* - 0x176
331-
- __le16
332-
- s_reserved_pad
333-
-
331+
- \_\_u8
332+
- s\_encryption\_level
333+
- Versioning level for encryption.
334+
* - 0x177
335+
- \_\_u8
336+
- s\_reserved\_pad
337+
- Padding to next 32bits.
334338
* - 0x178
335339
- __le64
336340
- s_kbytes_written
@@ -466,9 +470,13 @@ The ext4 superblock is laid out as follows in
466470
- s_last_error_time_hi
467471
- Upper 8 bits of the s_last_error_time field.
468472
* - 0x27A
469-
- __u8
470-
- s_pad[2]
471-
- Zero padding.
473+
- \_\_u8
474+
- s\_first\_error\_errcode
475+
-
476+
* - 0x27B
477+
- \_\_u8
478+
- s\_last\_error\_errcode
479+
-
472480
* - 0x27C
473481
- __le16
474482
- s_encoding

0 commit comments

Comments
 (0)