* [PATCH] squashfs: fix inode number description in documentation
@ 2026-09-08 13:01 Ray Lee
2026-09-10 8:12 ` Christian Brauner
0 siblings, 1 reply; 2+ messages in thread
From: Ray Lee @ 2026-09-08 13:01 UTC (permalink / raw)
To: phillip; +Cc: squashfs-devel, linux-fsdevel, Ray Lee
The documentation incorrectly described the inode identifier as a
48-bit number. In reality it is a 64-bit integer where the upper 48
bits hold the location of the compressed metadata block and the lower
16 bits hold the byte offset into the uncompressed block.
Signed-off-by: Ray Lee <hburaylee@gmail.com>
---
Documentation/filesystems/squashfs.rst | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/Documentation/filesystems/squashfs.rst b/Documentation/filesystems/squashfs.rst
index 45653b3228f9..d6397961d16b 100644
--- a/Documentation/filesystems/squashfs.rst
+++ b/Documentation/filesystems/squashfs.rst
@@ -177,9 +177,9 @@ or if the compressed block was larger than the uncompressed block.
Inodes are packed into the metadata blocks, and are not aligned to block
boundaries, therefore inodes overlap compressed blocks. Inodes are identified
-by a 48-bit number which encodes the location of the compressed metadata block
-containing the inode, and the byte offset into that block where the inode is
-placed (<block, offset>).
+by a 64-bit number: the upper 48 bits encode the location of the compressed
+metadata block containing the inode, and the lower 16 bits give the byte offset
+into that block where the inode is placed (<block, offset>).
To maximise compression there are different inodes for each file type
(regular file, directory, device, etc.), the inode contents and length
--
2.53.0
^ permalink raw reply related [flat|nested] 2+ messages in thread
end of thread, other threads:[~2026-09-10 8:12 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-08 13:01 [PATCH] squashfs: fix inode number description in documentation Ray Lee
2026-09-10 8:12 ` Christian Brauner
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox